Any sex outside of the marriage bond between a man and a woman is violating God's law.
The countries who do the best in international comparisons, whether it's Finland or Japan, Denmark or Singapore, do well because they have professional teachers who are respected, and they also have family and community which support learning.