The law states you can resist unlawful entry if you reasonably believe it to be unlawful. For example, I haven't had even a traffic citation in twenty years. I have no reason to believe that anyone (police officer or not) would have a lawful reason to enter my house uninvited.
So by what you're saying here, even if the police have a legal search warrant to enter your house, they knock and announce, you think that you have a legal right to engage them?