Wrongdoers may commit a hundred crimes but still live long lives. But I also know that it will go well for those who fear God, for those who are reverent before God.
But it will not go well for the wicked; they won't live long at all because they aren't reverent before God.
Here's another thing that happens on earth that is pointless: the righteous get what the wicked deserve, and the wicked get what the righteous deserve. I say that this too is pointless.
So I commend enjoyment because there's nothing better for people to do under the sun but to eat, drink, and be glad. This is what will accompany them in their hard work, during the lifetime that God gives under the sun.
References for Ecclesiastes 8:15
Then I set my mind to know wisdom and to observe the business that happens on earth, even going without sleep day and night
I observed all the work of God—that no one can grasp what happens under the sun. Those who strive to know can't grasp it. Even the wise who are set on knowing are unable to grasp it.