Islamic countries have already had this problem - what do you do when rich, powerful men have 4 wives, and female children are lower priority for food, medical care, etc, so there are already fewer of them and extra-marital sex is frowned on?
Well, many of those young men band together and go and live in the mountains... We call them Taliban.