Artificial intelligence should be kept out of classrooms, a royal family member and actor has said.