The Rashi to Devarim 23:9 quotes a Midrash that the Moabites and the Ammonites caused the Israelis to sin, and thus they are worse than the Egyptians and the Edomites who sinned themselves. But where did the Ammonites cause the Israelis to sin? It was the Moabites and the Midianites who were involved in the whole z’nos affair with Balaam; Devarim 23:5 just says that they didn’t greet us with bread and water.