Things I'd prioritize over a new rifle - if wanting to harden a rural home:
1) LoRaWAN network across the property
2) Tied into that network a series of monitoring sensors for gates/roads
3) Tied into that network, cameras
4) A pre-determined grid transect that I would have a drone programed to fly a path on. With way points pre-established so I could rapidly deploy a drone and survey any 500m radius in minutes, without having to actively fly the drone.
5) Complete survey of pre-existing fence and properly lines. Including knowledge of where the most likely source of attack on power/water would come from.
6) Supplies to persist for up to 90-days without replenishment/need to hunt any game.
And then I'd worry about a rifle, night vision, and armor.
Because if you have the first five on the list - you're not going to be caught unaware. You'll have intel and can choose how, when, and where to conduct your battle. Amazingly, the last 20 years of warfighting saw rapid progress in optics and modular optimization of small arms - followed by concerted effort in unmanned recon tools. Because intel wins battles and wars.