How many weeks is considered safe for baby's arrival?

F
I'm currently 32 weeks pregnant with my first. I'm just always in a panic that my baby will arrive earlier than 40 weeks and possibly face challenges of being born too early. I have no complications yet other than gestational diabetes. Does anyone know at how many weeks the baby can arrive and still be completely normal in development? I guess this is just to put my mind to ease with every week passing. Thanks so much ladies!