What if you are resisting unlawful arrest?
Legal. However, who decides if it's an "unlawful arrest"? Up to the point that the jury gets a crack at it, it's pretty much "the man" and people with a vested interested in supporting the established power structure.