In the last weeks, your baby should keep moving in their usual pattern, right up to and during labour. It's not true that babies slow down at the end.
Still moving, right to the end
You should keep feeling your baby move right up to and during labour (NHS, RCOG). The NHS week-by-week guide says that at 40 weeks your baby should still be moving in their usual pattern, and that movements should not slow down or stop.
NHS maternity units say it plainly: it is not true that babies move less towards the end of pregnancy (Cambridge University Hospitals). And they don't run out of space and stop moving (Tommy's).
What may change
The type of movement may change as you get nearer your due date (RCOG). Movements may feel different, but they should still come as often as before (Cambridge University Hospitals). What counts as a kick covers how to count them.
What to get checked straight away
Your baby is moving less than usual (NHS, Tommy's). Movements feel weaker than usual (Tommy's). You can't feel your baby moving any more (NHS). A change to your baby's usual pattern (NHS).
Contact your midwife, doctor or maternity unit now. Do not wait until tomorrow, and do not use an app to decide. What to do.
Labour, or not
If you think you might be in labour, Bump Pulse, our contraction timer, has a guide to when to go to the hospital. Reduced movements are a reason to call on their own, labour or not.