Little scared

Doctors said I had sugar in my pee. And on edge of being a diabetic. I’m 34 weeks and just not around there. I have a tough time dropping coffee that’s already made. Need tips advice what can happy if I do fully get it what happens to baby.