26 If a righteous person turns from their righteousness and commits sin, they will die for it; because of the sin they have committed they will die.

Read Ezekiel 18:26 Using Other Translations

When a righteous man turneth away from his righteousness, and committeth iniquity, and dieth in them; for his iniquity that he hath done shall he die.
When a righteous person turns away from his righteousness and does injustice, he shall die for it; for the injustice that he has done he shall die.
When righteous people turn from their righteous behavior and start doing sinful things, they will die for it. Yes, they will die because of their sinful deeds.