before entering the room
私の部屋に入る前にあなたはいつもノックをすべきだ。
You should always knock before entering my room.
部屋に入る前ににドアをノックして下さい。
Please knock on the door before entering the room.
彼は上司のいる部屋に入る前に深呼吸をした。
He took a deep breath before entering the room where his boss was.
部屋に入る前に靴を脱ぎなさい。
Take off your shoes before entering the room.