Dangerous rip currents along the Aventura, Sunny Isles Beach and Golden Beach coastline will persist through 8 p.m. Thursday, Oct. 22, according to the National Weather Service in Miami.

The agency issued a Rip Current Statement early Tuesday, Oct. 20, covering coastal Miami-Dade, Broward and Palm Beach counties. Wind gusts of 20 to 30 mph are driving rough surf and creating conditions that can pull swimmers away from shore into deeper water.

The agency urged beachgoers to stay out of the ocean unless near a lifeguard.

Lissette González, a meteorologist at CBS News Miami, told El Nuevo Herald that people should avoid getting in the water or going out on boats because of dangerous maritime conditions. González called the ocean hazards a direct result of the wind and heavy surf hitting area beaches.

The rip current risk arrives alongside a welcome cooldown. Highs this week are forecast between 80 and 85 degrees, with overnight lows dropping to 70 to 73 degrees, according to the National Weather Service. Monday, Oct. 19, was the warmest day of the week; cooler temperatures began settling in Tuesday.

González told El Nuevo Herald the week ahead would be breezy and pleasant but warned that the wind is also fueling hazardous ocean conditions. A separate Small Craft Advisory for boaters runs through Wednesday, Oct. 21, NBC 6 reported.

Rain chances sit around 20% for the week, though wind-driven showers are still possible, according to the weather service.

The weekend brought heavy rain and strong gusts to the area, and the rip current risk that built up over those days has carried into this week, according to Hoodline.

What to do if caught in a rip current

The National Weather Service advises beachgoers to swim near a lifeguard. If caught in a rip current, relax and float. Do not swim against the current. Swim parallel to the shoreline if possible. If you cannot escape, face the shore and wave or call for help.

Residents can report hazardous beach conditions to their local police department or call 911 in an emergency.