God of the Bible told the Jews to banish the male shrine prostitutes. The Jews were not permitted to make any idol, in the likeness of a man nor a woman.

Men like to brand prostitution like trade in sexual favors. Buying and selling of sex. But God of the Bibles have a different view on this, and explains to us that prostitution is much more than buying and selling of unlawful sex. The Bible speaks about Spiritual prostitution. This kind of adultery towards God starts with making an image or an idol. The moment you brand such production as anything but sin, you have become a member of a prostitution racket.
The first time God told the Jews of spiritual prostitution and corrupt practices, was at the time of Moses receiving the Law at Mount Horeb.
Deuteronomy 4:15-16
«You saw no form of any kind the day the LORD spoke to you at Horeb out of the fire. Therefore watch yourselves very carefully, so that you do not become corrupt and make for yourselves an idol, an image of any shape, whether formed like a man or a woman».
Since Moses was a man of God, our Father in Heaven could have given the Jews the right to make an image of Moses. But He did not. The Jews were not allowed to make any image of godly men nor godly women, not even their forefather Abraham. God the Father said very plainly that anyone who permitted such idols to be made, would become corrupt in His eyes. Whatever man might put up as a defenses for such adoration of veneration of created things, in the form of stone and wood.
But there were men who disobeyed this, even priests. God gave such priests into the hands of Satan. He branded them «male shrine prostitutes».
1 Kings 14:24
«There were even male shrine prostitutes in the land; the people engaged in all the detestable practices of the nations the LORD had driven out before the Israelites».
It is worth paying attention to what kind of «detestable practices» the Bible speaks about:
1 Kings 15:12
«He expelled the male shrine prostitutes from the land and got rid of all the idols his fathers had made».
For God, it did not matter if these male shrine prostitutes idols had made images and idols of «holy men» like Abraham or Moses. God wanted us to worship, adore and venerate Him only, in Spirit and in truth.
This is confirmed by the Jewish Apostles John in the new testament:
John 4:24
«God is spirit, and his worshipers must worship in spirit and in truth».
The prophet Ezekiel also warns us about the risk of becoming a prostitute in they eyes of God.
Ezekiel 16:16-17
«You took some of your garments to make gaudy high places, where you carried on your prostitution. Such things should not happen, nor should they ever occur. You also took the fine jewelry I gave you, the jewelry made of my gold and silver, and you made for yourself male idols and engaged in prostitution with them».
The prophet Hosea tells us that many people shall come up with many human made explanations, where they justify their own actions, and choses to call God a liar.
Hosea 5:4
«Their deeds do not permit them to return to their God. A spirit of prostitution is in their heart; they do not acknowledge the LORD»
Finally the Jewish Apostles Paul explains to us the punishment that will be inflicted on people who justify their action, and defend religious systems governed by male prostitutes.
1 Corinthians 6:9-10
«Do you not know that the wicked will not inherit the kingdom of God? Do not be deceived: Neither the sexually immoral nor idolaters nor adulterers nor male prostitutes nor homosexual offenders nor thieves nor the greedy nor drunkards nor slanderers nor swindlers will inherit the kingdom of God».
So please do not make idols. And do not participate in these kind of evil deeds of spiritual darkness.