(8) When you build a new house, you shall make a parapet for your roof, so that you do not bring bloodguilt on your house if anyone should fall from it.
(א) שלא להניח מכשול - שלא להניח המכשולים והמוקשים בארצותינו ובבתינו, כדי שלא ימותו (רמב''ם הל' רוצח פי''א) ולא יזוקו בם בני אדם, ועל זה נאמר (דברים כב ח) ולא תשים דמים בביתך, ואמרו בספרי ועשית מעקה לגגך, עשה, ולא תשים דמים בביתך, לא תעשה.
(1) To not leave a stumbling block: To not leave stumbling blocks and snares in our land and in our homes, so that people not die or get injured from them (see Mishneh Torah, Murderer and the Preservation of Life 11). And about this is it stated (Deuteronomy 22:8), "and you shall not place blood in your house." And they said in Sifrei [that] "and you shall make a parapet for your roof" is a positive commandment and [that] "and you shall not place blood in your house" is a negative commandment.
(א) מצות מעקה - להסיר המכשולים והנגפים מכל משכנותינו, ועל זה נאמר (דברים כב ח) ועשית מעקה לגגך. והענין הוא שנבנה קיר סביב הגגות וסביב הבורות והשיחין ודומיהן, כדי שלא תכשל בריה לפל בהם או מהם, ובכלל מצוה זו, לבנות ולתקן כל כתל וכל גדר שיהיה קרוב לבוא תקלה ממנו, וזה שהזכיר הכתוב לגגך דבר הכתוב בהווה ולשון ספרי ועשית מעקה מצות עשה (עי' ספהמ''צ להרמב''ם עשה קפד).
(1) The commandment of a parapet: To remove stumbling blocks and obstacles from our dwelling places, and about this is it stated (Deuteronomy 22:8), "and you shall make a parapet for your roof." And the matter is that we should build a wall around the roofs and around the pits and the ditches and that which is similar to them, so that no creature should stumble to fall in them or from them. And included in this commandment is to build and fix every wall and fence from which it is likely that there come an accident from it. And that which verse mentioned "for your roof," is [because] the verse spoke in the present (using the most common example). And the language of Sifrei is "'And you shall make a parapet' is a positive commandment" (see Sefer HaMitzvot LaRambam, Mitzvot Ase 184).
(א) היא שצונו להסיר המכשולים והסכנות מכל מושבותינו, וזה שנבנה כותל סביב הגג וסביב הבורות והשיחין והדומה להם כדי שלא יפול המסתכן מהם או בהם, וכן כל המקומות המסוכנין והרעועים כלם יבנו על סדר שיסור הרעוע והסכנה, והוא אמרו יתעלה ועשית מעקה לגגך. ולשון ספרי ועשית זו מצות עשה. וכבר התבארו משפטי מצוה זו בבבא קמא. (כי תצא, הלכות רוצח פי"א):
מצווה ראשונה,לא תרצח בעשרת הדברות.
מצווה שניה לא תעמד על דם רעך.
1.The first connection is to the the mitzvah from the 10 commandments is don't kill.
2.If you can save someone from falling and getting hurt you must do everything you can to save him in order for that person to live and you won't charged with spilling blood in your house.

