The rule is to always evolve first. Once evolved, you'll get more CP out of every power-up. No sense in wasting valuable Stardust by powering up something that could get transferred in favor of candy.
As you level up you'll encounter stronger wild pokemon. One of those stronger wild pokemon...