Rabbi Nachman teaches,
When a person falls and is sinking in the mud and mire, he must not allow himself to stay there. He must have one leg outside even while one leg is inside. One leg outside, one leg inside. until the other leg is also outside!
Siach Sarfey Kodesh 1-1
With permission taken over from: Daily Dose Of Rabbi Nachman