Would it be illegal to publish such instructions?
A guide that describes how to circumvent the management of iPads by schools.
It's not like the MDM is completely gone from the iPad, it's just never activated but is still on the iPad.
The result is an iPad without any limitations.
Maybe(!) not criminal – civil but in any case.
Guess both.