Here is an interesting incident reported in the Bible.
Judah (the fourth son of Jacob), the founder of the Israelite Tribe of Judah, slept with her daughter-in-law Tamar when she showed herself up as a prostitute in disguise. (Genesis 38:16, 17) “About three months later Judah was told: "Your daughter-in-law Tamar is guilty of prostitution, and as a result she is now pregnant." Judah said, "Bring her out and have her burned to death!" (Genesis 38:24)
For Judah, going to "a temple prostitute" (Genesis 38:21) is just an ordinary matter fixing a price of a goat! Tamar, daughter-in-law, perfectly guessed if she pretended as a prostitute, her father-in-law would come to her!?
Yet Judah was believing prostitution was a mortal sin that merited death punishment even before Law was given to mankind! (Genesis 38:24)
If people would still do what they already knew something as serious as meriting death punishment, what is the use of scriptures? God is in no necessity to communicate with mankind!