Surley 'intelligence' (whatever that is) is just another trait
that has a survival impact.
If you are a particularly puny creature with limited resilience
(like humans) then you are only going to survive if you can compensate
for your inadequecies via manipulation of your environment.
Dinosaurs may have had some species that fell into this category ...
so who knows ... we know nothing about dinosuar behaviour (alhtough
there are some educated guesses) so we cannot comment on their
intelligence levels.