In dominantly aquatic habitats their semiaquatic behavior is considered to provide a measure of safety from predators. Paired with their generalist diet, this is thought to contribute to their ecological plasticity.[1] When hunted by predators such as the king cobra (Ophiophagus hannah) they will climb trees using their powerful legs and claws. If this evasion is not enough to escape danger, they have also been known to jump from trees into streams for safety, a tactic similar to that of the green iguana (Iguana iguana).[2]