Devarim22:8

כִּי תִבְנֶה בַּיִת חָדָשׁ וְעָשִׂיתָ מַעֲקֶה לְגַגֶּךָ וְלֹא־תָשִׂים דָּמִים בְּבֵיתֶךָ כִּי־יִפֹּל הַנֹּפֵל מִמֶּנּוּ׃

When you build a new house, you shall make a parapet for your roof, so that you do not bring blood upon your house if anyone falls from it.

Devarim 22:8

כִּי תִבְנֶה בַּיִת

Devarim / Deuteronomy 22:8 · Pshat

Devarim 22:8

כִּי תִבְנֶה בַּיִת חָדָשׁ וְעָשִׂיתָ מַעֲקֶה לְגַגֶּךָ וְלֹא־תָשִׂים דָּמִים בְּבֵיתֶךָ כִּי־יִפֹּל הַנֹּפֵל מִמֶּנּוּ׃

When you build a new house, you shall make a parapet for your roof, so that you do not bring blood upon your house if anyone falls from it.

Pshat פְּשָׁט

Not through you

A misfortune happens, and you think: it would have happened anyway. Perhaps. But what matters is whose hands it passed through.

Rashi: the new house with a parapet is a reward for the bird you sent away, because one mitzvah draws another. The one who falls may have deserved to fall, but let his death not come through you. Sforno: do not be the cause of blood guilt resting on your house.

How Rashi and Sforno explain it

Rashi When you build a new house

If you have fulfilled the mitzvah of sending away the bird from the nest, in the end you will build a new house and fulfill the mitzvah of the parapet, for a mitzvah draws a mitzvah after it. And you will come to a vineyard, a field and fine garments. That is why these passages were set side by side.

Rashi If the faller falls

This person deserves to fall, and still let his death not come about through you. For good is brought about through the worthy, and guilt through the guilty.

Sforno So that you do not bring blood upon your house if anyone falls

When it happens that someone falls from there, do not be the cause, so that the punishment for blood would be in your house.

Takeaway

The chain "nest, house, vineyard, clothing" comes from the midrash that a mitzvah draws a mitzvah (Tanchuma, Ki Teitzei 1). Rashi cites it briefly.
"The faller" (הַנֹּפֵל) is what the Torah calls one who has not yet fallen. From this Rashi learns: he is destined to fall, but let it not be through you. So teaches Sifrei (Sifrei Devarim 229).
"Good is brought through the worthy, guilt through the guilty" is a rule of the sages found in the Talmud (Shabbat 32a).