Would it be illegal to shoot my neighbor's dog with a BB gun?

I’d say toss a few dog-friendly laxatives over in their yard for revenge, but that would probably just end with the dogs being outside for more time. Mastiffs would probably make a hell of a mess in the house. I vote for the CD player rigged to play random zoo animal noises all day while you’re out.