I have found that the regular practice of meditation with the guidance of a true guru is the best protection one can hope for in life. Even much better than wealth or fame!
We have to apply God-given discrimination as well!
Usually the teaching of a true guru will have the result of improving discrimination, but sometimes we seem to be able to run into foolishly dangerous situations anyway.
I remember a member of the old Yogananda forum was strangled to death by a psycopath. She forgot to apply the elementary measures of safety. In her compassion, she gave hospitality to a man she met while working in food distribution for the homeless. The guy apparently didn't want to leave the house when asked and just killed her in rage.
I remember some of the forum members were angry that the young lady was not divinely protected.