They didn't mean that the sins a parent might commit would be visited on their offspring. The words actually meant that the mistakes a parent made while they were bringing up their children would be visited on the second, the third, even the fourth generation.