AI guardrails for preventing academic dishonesty