No person employed or engaged in a school or educational institution, whether public or private, shall inflict or cause to be inflicted corporal punishment upon a pupil attending such school or institution; but any such person may, within the scope of his employment, use and apply such amounts of force as is reasonable and necessary:
and such acts, or any of them, shall not be construed to constitute corporal punishment within the meaning and intendment of this section. Every resolution, bylaw, rule, ordinance, or other act or authority permitting or authorizing corporal punishment to be inflicted upon a pupil attending a school or educational institution shall be void.
N.J.S. § 18A:6-1