If a 2 year old manages to climb over a 12 foot fence to get to the dogs, then the parent or guardian needs to do some prison time, not the dog owners. That’s a kid that’s not properly supervised.
It’s not a matter of killing people for trespassing either. It’s a matter of reasonably containing your animals. If I hop over an electric fence and get killed by a farmer’s bull, that’s my own dumb fault not the farmers.
It's okay to kill improperly supervised kids? Gotta protect those meth labs.