The guard must not see you.
He can't if you stand either by the door on the left or in the middle of the staircase.
He is walking up and down.