That’s an entirely different situation.
It would be more like a low level manager telling new employees what he would do if he ever catches them stealing office supplies.
The university has a policy on how to handle cheating. The professor doesn’t need to imagine potential scenarios in the syllabus