Water is treated differently in different games.
Some games allow you to walk through shallow water, but drown instantly in deeper water. Very notable instant death in some games like Dark Souls.
Some games allow you to swim in deep water, but they use tricks to prevent you from getting too far.
From a game design standpoint, this feels kind of bad, when there are areas of safe and dangerous water. Both of these games give you some kind of warning, but it still feels like they're generally training you to stay away from the water, while sometimes requiring you to traverse through it.
Some games allow you to walk through shallow water, but drown instantly in deeper water. Very notable instant death in some games like Dark Souls.
Some games allow you to swim in deep water, but they use tricks to prevent you from getting too far.
Spoiler for Jak and Daxter:
From a game design standpoint, this feels kind of bad, when there are areas of safe and dangerous water. Both of these games give you some kind of warning, but it still feels like they're generally training you to stay away from the water, while sometimes requiring you to traverse through it.