I first ask 你下车吗?(are you off?). You avoid a lot of problems by asking and that is also a kind of warning saying to the person who is in the front of me that if she/he does not get out of the way she/he will end up on the platform too.
If the people on the platform are stupidly grouped right outside the doors as such
I do not hesitate in playing the game.