If you want to keep a pet from going up your stairs you can certainly buy a commercial pet gate, but for a fraction of the price you can assemble a rectangle using PVC and cover it with fabric.
Iron is a sturdy material for gates, but it's also heavy and prone to rust. Here are some attractive alternatives for style ...