From what I can tell either you can feel when you are about to wake up or it’s the feeling of “Oh crap. I’m waking up.” that actually wakes you up. But if you have long LDs it’s most likely that you’re just reaching the end or REM or you just get too aware and too close to waking up.