As others have said, the crew is subject to the laws of the land, especially when they are on the ground with the door open. The Captain has much more leeway when the door is closed and the plane is in the air. I would never defy a Captain's orders in the air.
But on the ground, if I am totally sure that I'm in the right, I would stand up for myself and fight the good fight.