"It was just my orders sir" is no excuse.
Following the law is always the proper course of action. Especially when the facts are ambiguous.