God hates the religious activities of the people in the surrounding nations. He considers them to be terribly evil. Here "nations" represents the people. AT: "you must not do the terrible things that the people of the other nations do" (See: [[rc://en/ta/man/translate/figs-metonymy]])
These are different people who practice magic. God has forbidden every kind of magic. If you do not have a word for all of these types of people, it can be stated more generally. AT: "anyone who uses magic to try to find out what will happen in the future, to cast spells, or to talk to the spirits of dead people"