I'm sure getting called a monkey will stop them from ever making a mistake again.

If this was true, teachers and trainers would have the easiest job in the world: just insulting their pupils would stop them from failing an exam, race or whatever again.

The comment is clearly sarcasm.