Other boundaries on sexual behavior included the prohibition of sexual relations between close relatives, between persons of the same sex, and between people and animals; prostitution was also forbidden.[15] The prohibition of prostitution has been interpreted by rabbinical scholars to preclude sexual relations outside of marriage in general,[9][16] and a woman who, after getting married, was found to have been promiscuous before marriage faced the death penalty.[17] A woman who was raped was not guilty of breaking the law, provided she cried out for help (which was taken as proof that she did not consent).[18] According to Deuteronomy, the commandment against adultery was reaffirmed as the leadership of Israel passed from Moses to Joshua.[19]