Police are urging coastal residents and visitors to take care in public spaces to ensure lives are not being put at risk.