You don't have legal or work problems that can't be overcome, worked around, put to good use as growth tools, etc., as long as you get and stay sober.
If you drink again or use drugs again, these types of problems will undoubtedly resurface and you will start losing even more things that are important to you.
In other words, you'll start to really know loss.
On the other hand, if you get and stay sober, you will have much more than you ever hoped for, because you will know how to live your life on this earth to good purpose.
The choice is yours, amigo.
If you want help in pursuing option 2 (sobriety and recovery), hang around here and we will do everything we can to help.