When you're in cold water the cold water causes shock to your lungs muscles which causes involuntary inhalation and can lead to drowning so it's best to stay out of cold water.
Inhaling cold water especially if you suffer from other health problems including cardiovascular disease the cold water shock and hyperventilation in the cold water could cause cardiac arrest, heart attacks and even death because of the additional workload.