Reckless behavior is part of the mania until you learn what it is and how to control it. I used to spend and drink like there was no tomorrow. I would never endorse any such type behavior. I used to sabotage nearly every relationship, except the ones that were bad for me.
You have to stay on your meds. You need a core group of people around you that can tell you when you are getting out of control. You can even have a code word if you're with other people who don't know you are BP.
I have no idea what your legal problems are. I just hope they are not too serious and that you get a second chance. Sometimes it takes something bad to happen before we realize all the harm we have caused ourselves and others.
If you are going off your meds because there is some side effect you don't like, talk to your Pdoc and they can change the meds.
I wish you the very best in solving your legal problems. I do understand. {{{{HUGS}}}}