A child is not aware of the potential fallout from his actions. Parents have experience and wisdom - some gained the hard way, through making painful mistakes or by committing sins and recovering. But human parents are sometimes too lax or too strict with children - and certainly parents do not know everything. He is neither too lax nor too strict. We should trust Him and obey Him implicitly.
Human society is complex, made up of people who are complex.
Each person has a soul made up of a mental and emotional structure containing areas of strength and weakness and possessing trends toward morality or licentiousness, all coupled with a physical nature that is hard to understand or control. Society is a matrix of individual complex souls. Each individual is unique, but there is an underlying common structure in the souls of all people. God not only knows everything about us, He also knows all about the society we live in. He has established in the Bible a perfectly balanced set of societal standards based on His omniscience and His plan of grace.