When I have lived where that was a problem and I knew who owned the dog doing the crap in our yard, I just neighborly picked it up with a shovel, and put it in a bucket, and then returned it to their property.
that always took care of the problem.... pissed off a few of them, but then I told them, I was just returning the favor their dog kept doing to my property.
Only once did I have a scenario where the neighbors dog died... little rat terrier..
its owner never would do anything about it..
I didn't kill it, coyote passing thru got it...and turned it into Schitt somewhere out in the woods nearby I gather...
that cured the A Hole neighbor of letting his little mutt run loose..
its illegal, but I'd rather have shot the neighbor.. old Jewish guy who was the type that just give Jewish people a bad name...former IRS agent...
"Minus the killings, Washington has one of the lowest crime rates in the Country" Marion Barry, Mayor of Wash DC
“Owning guns is not a right. If it were a right, it would be in the Constitution.” ~Alexandria Ocasio Cortez