Are the dogs actually acting threatening, or just having fun and making a lot of noise? Does it make a difference whether there is one dog or a group of dogs? Packs can change the whole picture.

If you are talking about those stupid invisible fences, you might drop the owner a registered letter about what's going to happen if their dog blows through it and attacks. Many high-prey-drive dogs will do just that. Afterwards, it can't go home because the same warning/jolt that kept him in under normal circumstances is now keeping him out. If it is truly an aggressive dog, it is now roaming the neighborhood. Once a dog goes through that fence, the fence is useless.

You could also try a mail carrier's trick: take some dog jerky treats with you and flip one or two to each dog (different directions) each time you go by. They may get to looking forward to seeing you. And it tends to annoy the owners -- HA!

Sue