HELP!!

I've always heard of you're overweight (slightly) before you get pregnant, you're more than likely going to get gestational diabetes? How can I avoid that?