Every choice you make in life comes down to a "what happens if A is correct vs. what happens if B is correct, and how likely are each" question. Some, like the Army, call in Risk Management. You weigh the options and think about what the worst possible outcome will be for the decision as well has how likely that outcome will be.
Guys dressed as SWAT, calling out POLICE! coming through my door.
Possibility A: They are criminals who want to kill me.
-Option1: Shoot them. I could win and survive
-Option2: Don't shoot them, they attack me and I probably lose
Possiblity B: They are police officers acting, justified or not, on official action
-Option1: Shoot them. I lose. I get killed or survive and prosecuted for murder.
-Option2: Don't shoot them. Repair my door, be angry, but alive.
It seems that one on hand shooting at the "team" will help you survive, and on the other, it will cause even more problems, probably your death. Since the outcomes are essentially the same in each scenario, only reversed by your actions, the real question is...which scenario is more likely; police or criminals?
I would guess it's probably more than 99% more likely that it's police. How many SWAT entries happen in a year in the US? How many of them were criminals pretending to be police?