There’s no evidence that those who cheated were already going to.
The prof said it was only suspected that students were cheating, and instead of investigating and collecting evidence, he fabricated evidence through his own encouragement of the same crime he seeks to denounce.
I didn’t mean to argue that it’s entrapment specifically. I do think that the prof was in wrong, though.