Earlier quoted context omitted.
By making it hard to obtain weapons. The US thinking to me seams to go along the lines of handing out nuclear weapons to everybody so forces are balanced...
What do you do if two criminals break into your house and you don't have a gun?
The number one, by far most effective thing you do comes well ahead of those armed, home entry thieves, and that is you make your home scream "GO AWAY!"
Get a dog
Employ great lighting
Put the home alarm stickers on, actual alarm optional, [3]
Clean up.
Etc...
The criminals work on risk reward. You can bias that equation away from favorable meaning the baddies pick another home, not yours.
From there, should you really feel this scenario could happen, maybe consider a gun. But if you do, please get gun education. One bad scenario is to have a gun, and face experienced users. Your chance of getting you, and or family, hurt go way up!
I do mostly identify with the left, but am gun friendly having grown up rural and well educated about guns.
[3] - no joke! Neighbors had done the sticker thing for roughly a decade. That, plus the other suggestions work well.