The Algorithmic Tightrope: Upholding Academic Integrity in the Age of Generative AI