School may have to turn pupils away