Separating themselves from uncleanness represents refusing to do things that make people unclean. Alternate translation: "They refused to do the things that the people of the land did that made them unclean" (See: [[rc://en/ta/man/jit/figs-metaphor]])
Here "uncleanness" represents being unacceptable to God. Alternate translation: "the things that the people of the land did that made them unacceptable to God" (See: [[rc://en/ta/man/jit/figs-metaphor]])