They are closely associated with water. They live in rivers. When you see a snake swimming, it’s almost certainly a viperine snake. The one in the picture is a young specimen.
They are harmless; they don’t even make a move to bite if you approach them.
They are called viperine snakes because when they are adults their head resembles that of vipers, more triangular, except that this viperine snake has a circular pupil.