It is their property but is it even legal to ban the discharge of a firearm in this manner?
It is legal, and I don't think it's uncommon, but such bans applies to things like target shooting. They do not apply to the discharge of firearms in bona fide self defense.