Idol worshipers, with whom there is no war with us, and Jewish shepherds of thin animals ["behemah dakah" - a category of animals, including sheep and rams, which one is forbidden to raise in the Land of Israel due to the fact that they consume every creature in their way, thus hindering the mitzvah of settling the Land -translator's note] in the Land of Israel, at a time when most of the fields belong to Jews, and [consequent laws that] derive from this [apply], one may not allow the [idol worshipers] to die, but it is forbidden to save them if [the rescuer] is likely to die [trying to save them], such as [a case where one] saw one of them who fell into the sea, one does not pull him out even if he will be paid. Thus, one must not heal them, even for payment, unless there is reason [to save them] on the grounds of [preventing] hatred [of Jews]. Rema: for then [under those circumstances] it is permitted even for free [without payment] to save them, if he will not be able to be dropped even for free. (Beit Yosef in the name of the Ramban). And thus it is (Rema: it would be) permitted to attempt to heal a Cutite [non-Jew] if one is so inclined (Tosfot and the Mordechai Pe"m and in the Sma"g). Which things are being discussed, regarding a Jew with sins and who stands by his wickedness consistently, such as the shepherd of a thin animal [behemah dakah] who unload stolen wares ["parku b'gazel] and they go in their foolish ways. But a Jew who has sins, [but] who does not stand by his wickedness consistently, [and] rather does sins for personal benefit, such as one who eats forbidden foods to satisfy his appetite, it's a mitzvah to save him and it's forbidden to let him die (literally: stand by his blood).
The heretics, and those who practice idol worship (literally: worship of the stars), or who do sins for the sake of provocation, even one who ate forbidden foods or wore shatnez in order to provoke, this person is a heretic; an the apikorsim, and those who do not believe in the Torah and in the Jewish prophecy, it is a mitzvah to kill them. If one has strength in his hand to kill them with a sword, in public, he should kill him.