If you fire even one shot at two intruders, they are going to run. They aren’t going to stand their ground and try and kill you. Watch a few videos of home invasions. They always flee. That’s a big reason why shotguns are the preferred home defense weapon even though they usually only hold 5-6 rounds.
Even if they were there specifically to kill you, once they lose the element of surprise they will flee. They aren’t sticking around waiting for cops to show up to find out who is shooting.
Gun policy shouldn’t be based on action movies and it seems like you’ve got a bad case of confusing those for reality.