A more humane version may be to set up turrets with auto-aim lasers that can instantly blind targets rather than outright kill them.
https://en.wikipedia.org/wiki/Convention_on_Certain_Conventi...
https://en.wikipedia.org/wiki/Protocol_on_Blinding_Laser_Wea...
A scenario where Palestinians are permanently blinded for approaching the prison fences in Gaza or elsewhere is honestly horrifying.
> It is prohibited to employ laser weapons specifically designed, as their sole combat function or as one of their combat functions, to cause permanent blindness to unenhanced vision, that is to the naked eye or to the eye with corrective eyesight devices.