Honestly, students should have a course in "how the justice system works" (or at least should work). So should the teachers.
Student unions and similar entities should exist and be ready to intervene to help students in such situations.
This is nothing new, AI will just make this happen more often, revealing how stupid so many teachers are. But when someone spent thousands for a tool, which purports to be reliable, and is so quick to use, how can an average person resist it? The teacher is as lazy as the cheaters they intend to catch.