Bastard curse (Deuteronomy 23)

“If a person is illegitimate by birth, neither he nor his descendants for ten generations may be admitted to the assembly of the Lord.”

This is the so-called “bastard curse”, and it is very difficult to understand.

The New Testament scripture comes to mind, “Christ redeemed us from the curse of the law.”