When does swelling become concerning?

38 weeks, my feet have been swollen for months now but today and yesterday they’ve been swelling and hurting like crazy. Midwife said I should expect this until delivery. They just feel so stiff and achy 😢