What does a red flag usually means?

At a beach a red flag means the sea is unsafe.