A lawyer can keep you out of jail by securing a withdrawal, acquittal or non-custodial sentence in your case. Relevant factors include the strength of the prosecution’s, age of the offender, prior criminal record, acceptance of responsibility, expressions of remorse, the potential for rehabilitation and support in the community.