Deuteronomy 23 discriminates among several nations and their relation to the congregation of Israel and its covenant:
He that is wounded in the stones, or hath his privy member cut off, shall not enter into the congregation of the Lord. A bastard shall not enter into the congregation of the Lord; even to his tenth generation shall he not enter into the congregation of the Lord.
An Ammonite or Moabite shall not enter into the congregation of the Lord; even to their tenth generation shall they not enter into the congregation of the Lord for ever: because they met you not with bread and with water in the way, when ye came forth out of Egypt; and because they hired against thee Balaam the son of Beor of Pethor of Mesopotamia, to curse thee. Nevertheless the Lord thy God would not hearken unto Balaam; but the Lord thy God turned the curse into a blessing unto thee, because the Lord thy God loved thee. Thou shalt not seek their peace nor their prosperity all thy days for ever.
Thou shalt not abhor an Edomite; for he is thy brother: thou shalt not abhor an Egyptian; because thou wast a stranger in his land. The children that are begotten of them shall enter into the congregation of the Lord in their third generation.
Draw your conclusions from this example from the word of God, concerning what laws are lawful according to nature.