“...legal technicality (such as entering a home without a warrant...”
The 4th Amendment otherwise known as a legal technicality.
However if a cop illegally enters your home without a warrant and failed to knock and gain permission to enter and you shoot him as an intruder you are in fear of, how does that square up with this ruling? Provocative acts are two way.