For some definition of harming others.
The subtitle says:
if the student disrupts the class
And, in the body of the article:
The proposed law would allow teachers to physically intervene if a student harasses or insults others, or "significantly" disrupts lessons.