Possibly a dumb question but.....

Meredith • Wife❤️ Mommy to a handsome 5 yo👦🏻 and boy/girl twins!!👶🏻👶🏻

I am currently 31.2 weeks pregnant with twins. Last week at my OB appointment, the doctor told me I was measuring 37 weeks. Since my body thinks it’s 37 weeks pregnant does that mean I may go into labor in the next few weeks? I have a c-section scheduled for 37.3. How does my body know that it needs to go further than 3 weeks?