In The Justice System, Prosecutors have an enormous amount of discretion in a criminal case. As a former prosecutor in the State of New York, and the Federal System in Detroit, I had the ability to decide who should be charged with a crime, what felony and misdemeanor charges should be filed, and when charges would be filed. Like all prosecutors, I also had the ability to negotiate plea bargains, dismiss charges, and recommend downward departures at sentencing. However, prosecutors cannot engage in conduct that amounts to selective or vindictive prosecution. For ethical prosecutors, this is not a problem. Unfortunately, some prosecutors cross the line. A recent google search for "prosecutorial misconduct cases" yielded over 150,000 results in .28 seconds.
The immigration consequences of a conviction for state misdemeanors can be severe. However, as it often plays out in the numerous District Courts in Michigan, people often do not worry much about anything more than the immediate consequences of a misdemeanor offense. People think that as long as they take care of the court costs, fines, and probation everything will be fine.