A bastard shall not enter - ממזר mamzer, which is here rendered bastard, should be understood as implying the offspring of an illegitimate or incestuous mixture.
A bastard - Probably, a child born of incest or adultery.
Even to his tenth generation - i. e. (see the next verse and Nehemiah 13:1), forever. Ten is the number of perfection and completeness.