Of course, the definition of "lawful arrest" is pretty flexible these days and can seemingly include arrests that are blatantly unlawful, like some cops deciding to assault a random passerby on the street because they don't like the look of them or are unhappy about legal conduct like photography. Is it okay to resist under those circumstances? According to a judge or a police officer, probably not, but at the end of the day you'd probably win the case. If you survive.