It's one thing to be told you must obey the law. But what being told to obey a cop who is acting contrary to the law? This happens routinely- and (usually) without consequences. For the cop, that is.
Some lies are hard to tell, because someone is going to demand proof.