When should we teach AI to students?