Employers get lots of leeway when it comes to terminating employees. For example, courts generally uphold firing someone for breaking a rule as long as the employer reasonably believed the employee broke the rule—even if it turns out he did not. But when it looks as if the employer tried to trick the employee into breaking a rule, judges won’t look the other way.