It means: just like the sea will not be calm forever, there will always be harm in love. Only by staying away from love can you not get hurt and be a winner forever.
But I disagree with this sentence. I admit that there are many failed loves, but we should not be too pessimistic. Everything will be fine.