He should discuss the likely outcome of his case with a criminal defense lawyer.

We have no way of knowing how the law enforcement officer he lied to figured out that he was lying. He should have a pretty good idea - ask him.