I know that these are very real scenarios you are talking about here, but can't you evade most of them by keeping a revolver under your pillow while you sleep?
no not if you're not home when they rob you.
Most theives are cowards, particularly when they are by themselves and you point first, so he wouldn't dare take anything while there's a gun pointed to his head.
that's why they wait until you're not there.