only if they resist lawful orders
They should not have treated him in that way, they should not have been violent, but so long as the pilot wanted him off he was obligated.
So no, I won't "take it from a lawyer".
A lot of those rules kick in only after the door is closed, or when the aircraft pulls back from the gate.