From personal experience the only advice I would beg people in similar situations to take is to reach out for help on all fronts. Professional, family, work, friends, etc. can all offer advice at times like these. I say this hypocritically because I myself did not choose help throughout my life when I was in similar situations. Getting help is really hard sometimes. But if you are not trying to get help you are not actively accepting all your options.
And I want to say I'm not trying to take away from your story at all. I've just seen many who have thrown it away where it didn't "all turn out ok".