If students cheat they hurt only themselves. Make sure they understand the consequences for cheating (missing out on learning) and that's about all you can do.
This statement is more defensible after removing “only”. If it “only” hurt the cheaters, there would be no need to police cheating at all.