so that you do not mix with these nations, these that remain among you; nor invoke the name of their gods, nor swear by them, nor serve them, nor bow yourselves down to them;
“mix with.” Literally “come into.” In some contexts, “come into” is idiomatic for sexual intercourse, but that may be going too far in this context (cp. Josh. 23:12, which uses the same phrase).
“nor serve them.” This refers to the work of worship.