Forecasters have advised residents in coastal towns to stay hydrated and avoid strenuous outdoor work during the hottest hours of the day.