How to deal with a student who tricks a professor into accepting a late exam?
Don't leave the pile of exams on your desk. Simple enough, and good practice. Exams should probably be properly secured in some way.
If you catch them, reject the exam, or otherwise deal with it.
If you consider it a breach of an honor code, especially an explicit one, then they can be reported to the overseeing board, of course.