Comparing this verse with Ecclesiastes 2:24, it is plain that the Preacher does not in the latter place recommend reckless enjoyment, but enjoyment tempered by the fear of God, and looking to the end.
Related Commentaries of Ecclesiastes 7:2
Ecclesiastes 7:2
2 It is better to go to the house of mourning, than to go to the house of feasting: for that is the end of all men; and the living will lay it to his heart.