Contracts don't determine what is legal and not legal. If the said person is found out then they would be in breach of contract and could be fired or sued. They would not earn themselves a criminal record.
They could earn themselves a criminal charge if the court decides what they're doing is fraud which it likely is if they have signed something saying they wouldn't work elsewhere simultaneously.
Getting sued is not getting convicted of something.
Anti-moonlighting clauses are nonsense.
Continue this thread — 2 replies