Beachgoers have been told not to swim in the stretch of ocean.