I tried doing that but couldn't reach the door in time.
Also if you do it very fast, you can complete it this way (sorry for low quality of image)