Most people who end up in this extreme predicament are not because of luck. It's because of a series of bad decisions. Often if it's too extreme, it's because the person cannot make the best decision due to some mental health issues. So I would seek help there if you are able to get on your feet.