BB guns work well for keeping them out of the yard. I have lived in the country most of my life and so goes that story.
We don’t live quite far enough into the country, but we might be able to shoot from the back window unobserved. LOL