We put something like this on top of the railing of my mother's 16th floor balcony (or "terrace" as they call it in NYC). They could probably evade them, but it's easier to land on an unprotected balcony instead.
http://www.amazon.com/Bird-X-Plastic-Polycarbonate-Spikes-Adhesive/dp/B0019F8IX6