Actually, in Virginia (and I believe this is common law principle), you do have the right to resist "unlawful arrest." However... you'd better be damn sure you're right, and that a court will agree as they judge the subjective reasonableness of the officer's actions.well lets see, interference with a police officer in performance of his duty, assualting a public safety/ police officer ( same crime in my state.. EMT etc are public safety officers ), resisting arrest... disturbing the peace if they want to be harsh to pile on... yep not a good IDEA!
I do not know of any state in the USA that you have a legal right to resist a police officer.... so even if needed you will be charged I am sure with assaulting an officer and resisting arrest.
Not exactly something I'd bet my freedom on...