Spinosaurus

It lived near the shallow waters or in them.

An excerpt from the article 14 facts about Spinosaurus
Recent discoveries suggest that Spinosaur was too buoyant to submerge, so it had to choose environments with ground under their feet.