א׳V. 5. והוצאת וגו׳. See on Levit. 24,14. The place of execution is to be outside the city but, as we believe, in such proximity to the city that the place appears as “before the gates of the city” as belonging to the township. That is how we think the expression הוצאה אל שעריך is to be understood. The Halacha also runs in similar terms: העובד ע״ז סוקלין אותו על שער שעבד בו. Thereby it is to be made clear that the fellow citizens of the criminal reject his crime with horror, so that by it he has shut himself out of their confraternity. Hence further the sentence in the Gemora that if the majority of the inhabitants of the city were non-Jews, the sentence is to be carried out על פתח בית דין just outside the court of justice (Kethuvoth 45,b)—שעריך, similarly to v. 2, the gate of the city in which the sin was committed שער שעבד בו not the city where the court which tried him was, not שער שנידון בו (ibid).
ב׳את האיש או את האשה. By this repetition, the procedure here is limited to cases where the sin has been committed by individuals only. Only then is the smaller court of twenty-three members competent to deal with it, and the verdict has to be סקילה, whereas if the whole community of a town has fallen to idolatry, an עיר הנדחת, it can only be judged by the supreme court of seventy one members and the death penalty is to be carried out by the sword. אין עושין ערי הנדחת אלא על פי ב״ד של שבעים ואחד אמר קרא והוצאת את האיש ההוא או את האשה ההיא איש ואשה אתה מוציא לשעריך ואי אתה מוציא כל העיר כולה לשעריך (Sanhedrin 16,b; see on Ch. 13,13 et seq. — וצ״ע דהא האי אל שעריך הוא). שער שעבד בו ולא שער שנידון בו כדלעיל.
ג׳וסקלתם באבנים: see on Levit. 20,2.