What lawyers do
A lawyer knows the law, is experienced in court, and knows the rules of evidence.
The lawyer will act to protect you at all stages of the criminal process. Do not try to represent yourself.
Seek and obtain legal counsel from the very beginning. The longer you wait the worse your chances of a good result.
A defendant who represents his or herself has a fool for a client.