Dinosaurs might have lived through the asteroid strike had it taken place earlier or later in history, according to a University of Edinburgh study.