she was caught in adultery if u read the rest of john 8 not prostitution  prostitution is somethin different  which was legal that time and should be legal everywhere today so theres that and you can say she was recommended to not sin not that she had to because jesus forgives a million times in a row  when asked about that literally making prostituion illegal would be against jesus command that he didnt condemn the prostitute
South Korea