Here in Crazyfornia they generally have to be across the threshold and you MUST be in “Fear for your LIFE”, you can get away with blasting them as they crash through the door, but it better be evident.
Just Remember
I WAS IN FEAR FOR MY LIFE!! and Nothing Else is said without a Lawyer.
I was in fear for my life and I need medical assistance. Then STFU, get a lawyer.