I hate to say it, but you're right.  If an officer is arresting you - even if his arrest is ILLEGAL, (as it seems to be in this case) you must comply with their orders, and then sue them for wrongful arrest.  If you resist, you ruin your day in court.