I think the judge, not the jury, decides the sentence in Minnesota, but otherwise yes, if you go to trial you should be prepared for any outcome. I wouldn't say "maximum possible", because sentencing guidelines can be exceeded but only in unusual situations, but you should be prepared for whatever the sentencing guidelines state at least. Your lawyer can probably tell you whether you're risking having the judge exceed the guidelines or not.
I draw a distinction between rewarding a defendant with a slightly better outcome for taking a plea, vs. punishing a defendant for going to trial. The former is fine, the latter is unjust. If going to trial just gets them what they deserved, that is fine; if the "machine" is angry at them for having the audacity to make it go all the way to justice, that is wrong.
People are only going to go to trial if they think the outcome will be better. They're not going to say "eh, I could take this plea, or I go to trial and get the same thing, you know what I'm going to spend thousands of my own dollars to take this to trial because the State is going to spend 1.5x that, and fuck the state". Especially not when they're paying a lawyer. I could see defendants with a public defender wanting to take it all the way, but it's not just to screw over the State; it's in the hopes of getting a better outcome. Being hauled through the process isn't fun, even if the prosecutor is along for the ride. It's less fun for you than it is for them. They're salaried.