On-page optimisation is the critical first step, and I always make sure I get this completed before I do any more.
To use an analogy: you wouldn't advertise a store without having a premises, and stock, and staff. Likewise, you don't do off-page optimisation until you're sure that what you're directing people to is the best it can be.