You need to lawyer up for so many reasons. First, there's a great deal missing here and if you step in front of the court, with an incomplete version of the facts you won't stand a chance. Many respectable attorneys provide a free consultation. My advice is to meet with one immediately because you will need to retain one soon.
The response above is not intended as legal advice since it’s impracticable to provide thorough, accurate advice based upon the query without additional details. It is highly recommended that one should seek advice from a criminal defense attorney licensed in your jurisdiction by setting up a confidential meeting. Moreover, this response does not constitute the creation of an attorney-client relationship since this message is not a confidential communication because it was posted on a public website, thereby publicly disclosing the information, which is another reason to setup a confidential meeting with an attorney.