All I can say is I had a German Shepard with a built in "Asshole detector." He could spot the jerks faster than I could. He had a pretty good system. If he let you pet him; you're an okay guy. If he softly growled and stepped forward; you're probably an asshole.
He knew when it was feeding time, bath time, vet time, walking time, and he knew that when faced with a long afternoon the best thing is to take a nap. He found the toilet all by himself and always 'asked' to go outside to shit.
He may not have been as smart as I am, but he's was a damn sight smarter than some of my former roommates.
As for human intelligence....I've seen specials with gorillas who have been taught to 'speak' using sign-language; and it really makes you wonder sometimes. Dominating the planet as a species really isn't that big an accomplishment. Dinosaurs dominated their world as well, and I don't see any of those lurking around anymore....