Leaving the path will always led us into despair and doubting. One simple step of disobedience can have catastrophic consequences
The key word, vanity, is employed over and over to show that everything man accomplishes and achieves is empty. At his very best man is a failure. Solomon discovered this in his long march through life.