If you are about to enter through the doorway of a building, room, office, elevator, or commuter train and there is someone on the other side of that doorway, let the person or people on the inside exit before you enter.
By stepping aside to let people exit, you are allowing yourself more space when you enter and avoiding a traffic jam.