Whose side are you on?

It was the wrong choice of words. Id say it's more a matter of siding against the student from a moral perspective rather than siding with the teacher.

And what is immoral about what the student did?