The second is that swimming also requires physical strength. If you are weak, you may drown, and then you may increase the possibility of cramps. It's best to find a cool place to rest and drink some water instead of ice water.
I also often play basketball.