Following the Mishnah (see "In classical rabbinic interpretation" above), Maimonides acknowledged that based on Phinehas's slaying of Zimri, a zealot would be considered praiseworthy to strike a man who has sexual relations with a gentile woman in public, that is, in the presence of ten or more Jews. But Maimonides taught that the zealot could strike the fornicators only when they were actually engaged in the act, as was the case with Zimri, and if the transgressor ceased, he should not be slain, and if the zealot then killed the transgressor, the zealot could be executed as a murderer. Further, Maimonides taught that if the zealot came to ask permission from the court to kill the transgressor, the court should not instruct the zealot to do so, even if the zealot consulted the court during the act.