Most STATES have laws against shooting within a specified distance from an occupied building. You do not mention whether you are in a city/town or out in the country. Regardless, if someone were to shoot onto or towards my property, I would feel as if I were personally being attacked! And if I heard a shot that close, I woulld definitely call 911 and report that I WAS under attack.
If you are concerned about predators in the area, have a discussion with the neighbors about it--work TOGETHER to defend your animals. As many have said, the best defense is making sure your animals are in a predator-prood enclosure.