Deuteronomy 23:1-8
All of those curses and restrictions were fulfilled in the coming of Jesus Christ. If you would study you would find that He is the son of the 10th generation. Had he not, He would have been ineligible to be the Saviour . . . for a sinner cannot save another sinner.
He was the sinless sacrifice of God fit to pay the sin debt of mankind . . . the second Adam.