(Proverbs 4:19 KJV) The way of the wicked is as darkness: they know not at what they stumble.
Many people who practice evil do so deliberately. Many do so without thinking. Many don’t have a clue. All are doing what they want to do. The difference is in understanding what is really going on. If you are old enough to remember the TV program “The Twilight Zone” you may remember the one in which the criminal was shot and thought he had ended up in heaven by mistake. He was delighted that every wish he had was granted. After a while he got tired of winning every time he played the roulette wheel. He begged his escort to send him to the other place because he did not deserve to be in heaven. The “angel” burst into laughter and said, “This is the ‘other place’.” The criminal got what he wanted and it wasn’t what he wanted.
So? Part of living the righteous life involves trusting God to know what is best for us and obeying even when we don’t understand. We often don’t “know” (3045) what the reasons or long term results will be but we can understand that God does.