You're wrong. Sorry, but The advice is not good anywhere. Any good system will be designed for flight or flight because, despite all else, humans are humans and this was not a situation anyone is trained to handle. Anyone.
If you're lucky the lift will have detected something wrong and gone into lockdown itself. If you're unlucky it'll start moving with your body halfway through the doorway. It's not incredibly likely to go wrong but the price when it does is too high to risk it.