It takes quite a bit of behavioral reinforcement to teach an animal to do/not do something. You must've shot this dog a least a dozen times in order to get him to associate walking into your yard with a jolt of pain. Yeah, that's mean. It's obvious from your other posts that you don't care very much for the dog's owners. Kinda seems like you're taking it out on the dog.