The fall of the asteroid into the Gulf of Mexico was experienced not only by crocodiles, but also by many other groups of animals, taking at least small mammals, who were our direct ancestors. In paleontology, this catastrophe is called the Mel-Paleogene mass extinction (after all, it happened at the border of the Cretaceous and Paleogene periods). And although it is undoubtedly the most famous mass extinction, life on our planet has gone through the worst of times: Perm-Triassic mass extinction was much more devastating and almost put an end to multicellular life.
But back to our dinosaurs. According to modern concepts, the fall of the asteroid caused violent volcanic activity and widespread forest fires. The result was clouds of dust that obscured sunlight and prevented plants from photosynthesizing normally. And this led to the collapse of the entire pyramid: after the death of plants without a food source, herbivores remained, a sharp drop in their numbers led to the disappearance of predators. The disappearance of phytoplankton has led to similar dramatic events in aquatic ecosystems. Although dinosaurs could not survive this catastrophe, smaller animals managed to adapt and wait out hard times.
In addition, do not forget that dinosaurs probably began to die out even before the fall of the asteroid. In Russian paleontology, a popular theory is that dinosaurs were ruined by climate change as a result of continental drift and the disappearance of the usual vegetation cover (flowering plants began their victorious march on the planet, crowding gymnosperms, ferns and other). Thus, at the end of the Cretaceous, the dinosaur fauna was already not feeling very well, and the huge celestial body that fell to the Earth was only the last nail in the lid of their coffin.