The God of the Bible, our Christian God, namely the Father, Son, and Spirit, are all characterized with perfect righteousness and perfect justice.
These two attributes combine together to create holiness, a perfect state of sinless perfection, without flaw, without taint, without moral blemish of any kind.
God does not have a double standard when it comes to moral conduct. God does not have a double standard when it comes to integrity. God does not have a double standard when it comes to honor.
Many of the religions of Davids day, and even throughout history, promote sensual pleasures. Even the Islam religion of our current day, hangs the carrot of enticement of afterlife virgins as well as many other evil beliefs. A policy that is clearly lustful and full of sin.
But then remember that God is real and true, while the gods of religions are false, manmade and inventions designed to allow human sin patterns as acceptable practices.
Evil plays favorites and will distance itself from everyone whom it pleases. There is no consistency and no security in the religions of the world.
Christianity is not a religion. It is not manmade, and not invented. It is a relationship with God through Jesus Christ.
God has perfect integrity, perfect honor, a perfect policy which is immutable. It never changes throughout the ages, and will never change into eternity. In God is consistency, and security, fairness and safety for everyone. You will never be left out or abandoned by God, due to changing circumstances or times, or whims.
The evils of this world, do not come from God. All flaws, handicaps, prejudices and so forth, in this world, come from Satan, and from no other source. All lies, all deceptions, all handicaps, even death, originated with Satan.
Therefore, as we have been studying in this psalm, all the words of God, all the meditation, all the learning, all the knowledge and understanding are not, and are never, a waste of your time.
God is life. God is your origin. God is your destiny. God is the completion of your existence.
God provides and produces within you, all the meaning and purpose of your life, and far more.