Often God has to shut a door in our face, so that He can subsequently open the door through which He wants us to go.
God's way of dealing with us is to throw us into situations over our depth, then supply us with the necessary ability to swim.