i dont think there are any limitations about how late you can drive.
as long as you can drive safely i.e reach the steering wheel and pedals
all is good
i drove whilst i was in labour oops - funny story

good luck
me too waters broke while I was driving, so I drove another 15 min home in the opposite direction to the hospital