sprinkling a few dead pigeons around the feet of the device as a warning to would-be trespasser is the darwinian end-game in all of this.
I built a device that created a ~1cm arc to scare away pigeons. You don't need to electrocute them, the sound alone does the job. I don't believe they can develop a tolerance as it is a survival instinct from living in cliff faces.