Install a baby gate without damaging anything.
Let's face it: installing a baby (or pet) gate can cause a lot more damage than you'd like it to. Try using zip-ties instead of the fasteners that come in the box with the gate. This way you'll ensure the gate stays up AND you won't leave any permanent marks on your wall or railing.