Staying in the state of grace really helps. Also, sacramentals which hinder the devil in general would be a good thing.
Picture two thugs, one of them telling the other that "this is the house we need to rob", making a certain house into a target for the other thug, and/or his gang. But if the owner takes security seriously (motion camera, lighting, burglar alarm, powerful handgun, etc.) the thugs still might end up skipping the house.
If they set foot on the property and immediately got shot through with a few dozen needles from some exotic defense system, they would probably high-tail it out of there.
Devotion to the Blessed Virgin, use of holy water, St. Michael prayer, Miraculous Medal, blessed statues and pictures, and a holy life.
Matthew