Methinks the First Officer was placed in a difficult position. That said the legal obligation is to obey all "lawful commands" that the Commander makes. Clearly this was an "unlawful command" IMHO which the First Officer would have been quite entitled to disregard - how he would go about that is another matter!
This was a serious breach of the regulations if the facts are as reported. The Commander has a clear obligation to act lawfully.