Another point to make is that it can never be the duty of a public official to commit a crime.
Exactly. If they are acting outside the scope of their official duties, then the right to resist is clearly still open under this holding.
There was a point at which Rodney King had the right to fight back. Once the police cross the line and are in violation of the law (not merely some procedural rule, but in violation of the Penal code or other criminal statute) then all bets are off. The punishment for a violation of a search and seizure law is that the police can't use the evidence found in a criminal proceeding against you. The punishment against the police does not include the right of the property owner to beat the policeman to a pulp. In such a case the evidence wrongfully obtained would be excluded but the property owner would be charged with battery.