There are some square/cube laws that put a rough cap on how big an efficient animal can be with Earth biology. But if you change some parameters (lower gravity, energy-rich environment, stronger building materials than bone) you could get hundreds of times bigger than humans. Even on Earth, intelligent dinosaurs would have been completely possible.