Then again, its last thought may have been " Oh crap, this water's deep and I can't swim".
I would guess that it could at least float or the tracks would have kept going. On the other hand maybe there wasn't a lake and it ran right into another hungry dinosaur's mouth.