In the wild bees try to build homes around 30 feet up and in secure places like tree trunks. Why? Because everyone wants to get into a beehive. Wasps want their larvae, Wax Moth want the wax, Small hive beetles want in there also. Bears, skunks, possums, toads, mice, and those pesky 2 legged hairless apes all seem to want in the hive.
It's a real problem when all your neighbors look at you as a food source.
Beekeepers resort to all sorts of means to protect their hives. With means ranging from raising the hives so many inches above ground, top entrances, and electric fences.
Think of beekeeping with a certain amount of combat strategy. Understand your enemy and their weakness and exploit those.
Sincerely,
Brendhan