The Israelites were claiming that a righteous son (themselves) would die for his father"s (their ancestors") wickedness. But this was not true. Individuals who practiced righteousness would experience God"s covenant promise of blessing on their lives even though their fathers practiced wickedness. People die for their own sins, not for the sins of their fathers or the sins of their sons. Likewise people who behave righteously experience the consequences of their personal conduct just as people who behave unrighteously do. Jeremiah , for example, did not die in the Babylonian invasion of Jerusalem. [source][source][source]
It is true that we are sinners not only because we practice sin personally ( Romans 3:23; Romans 6:23) but also because we were born with a sinful human nature that we inherited from our parents ( Psalm 51:5; Ephesians 2:3; Galatians 5:17) and because God imputed the sin of Adam to us ( Romans 5:12-21). However here the point is that people do not die for the sins of their parents, grandparents, children, or grandchildren but for their own sins. [source][source][source]