The phrase
"to mind the gap" means to be cautious or careful about a space or distance, especially when getting on or off a train or subway. It is a reminder for people to pay attention to the space between the train and the platform, to prevent accidents or injuries.
Full definition