Electrify the fence, leave it off for awhile, let them get halfway up then flip the switch. Works on dogs. It’ll work on people.
Either that or invite people to use them for target practice as they get to the top.