In ancient times, many cultures and societies considered adultery as a heinous crime that violated the morality and virtues of their religious institutions, it should be noted that each culture has its own set of rules to deal with crimes, let's remember that adultery is defined as a sexual relationship with a person who is not the person's legal spouse.
https://pcweb.info/adultery-in-china/?lang=en