Your notion of success is a human one. Evolution doesn't care. When you reproduce before you die, you're successful.
Intelligence is in no way the best tool to guarantee reproduction, there's absolutely no inevitability to it. Grass reproduces just fine without intelligence. There's species practically unchanged for hundreds of millions of years.
There is no evolutionary plan or roadmap, it's random mutations.