Danielle – In the first place nothing can harm you in your dreams – see
https://dreamhawk.com/dream-dictionary/masters-of-nightmares/ if you don’t believe.
But you are obviously suffering anxiety about being attacked or threatened. Such anxiety does not go away unless you do something about it, and that means preparation. An easy one is a protective spray – not pepper spray because that is illegal – but there are many on sale that you could carry with you. In some countries you can buy a small taser which is an excellent defence. Always have it in your hand when opening the door or in anxious situations. Also see
https://www.wikihow.com/Defend-Yourself But be careful it is warranted because you could end up on the wrong side of the law.
Something you should be aware of is that Einstein and another scientist David Bohm, an eminent physicist, goes as far as to say that all things in our observable universe are inextricable linked. Nothing has separate existence. Knowing this, and in fact often feeling that I am inextricably linked with others living and dead, when in need of help I call for aid when there was no sign of it - in each case help arrived unexpectedly. So you can call for help - you do not need to be religious for the miracle of life and connection are everywhere.
Tony