It's grammatically fine, but more of a mouthful instead of "to remain". It's OK in formal literary English, but in regular English it sounds like a few unnecessary words are in the phrase.
If your lesson was on infinitives of purpose, then the student should be practising that.