I have found that as a DM who does all of the XP management for all characters (all the players know is what level they are).. I can prevent that kind of thing from happening. If somebody is close to gaining a level, I might consider creating a break point to allow them to up the level...