God did not and won't tolarate worship of Demons among his people:-
NWT Psalm 106:34-38 "They did not annihilate the peoples, As Jehovah had commanded them. 35 But they mingled with the nations And adopted their ways. 36 They kept serving their idols, And these became a snare to them. 37 They would sacrifice their sons And their daughters to demons. 38 They kept spilling innocent blood, The blood of their own sons and daughters Whom they sacrificed to the idols of Caʹnaan; And the land was polluted with bloodshed.
To keep his worship and people clean from child sacrefice and ritual immorality and homage to Satans angels, the Demons, he said that the Israelites must exterminate ALL false worshipers out of the land regardless of who they were so he could give The Promised Land to the desendants of Abraham as being clean from Devil worship, as we know it today:-
NWT Deuteronomy 13:12-18
“In case you hear it said in one of your cities that Jehovah your God is giving you to occupy, 13 ‘Good-for-nothing men have gone out among you to turn away the inhabitants of their city, saying: “Let us go and serve other gods,” gods that you have not known,’ 14 you should look into the matter, making a thorough investigation and inquiry; and if it is confirmed to be true that this detestable thing has been done among you, 15 you should without fail strike down the inhabitants of that city with the sword. Devote it and everything that is in it, including its livestock, to destruction by the sword. 16 You should then collect all its spoil into the middle of its public square and burn the city with fire, and its spoil will serve as a whole offering to Jehovah your God. It will become a permanent heap of ruins. It should never be rebuilt. 17 Your hand should take nothing that was set apart for destruction, so that Jehovah may turn away from his burning anger and show you mercy and compassion and multiply you, just as he has sworn to your forefathers. 18 For you should obey Jehovah your God by keeping all his commandments that I am commanding you today, thus doing what is right in the eyes of Jehovah your God.
His command was:-
NWT The First Commandment Exodus 20:1-6 "Then God spoke all these words:
2 “I am Jehovah your God, who brought you out of the land of Egypt, out of the house of slavery. 3 You must not have any other gods besides me.
4 “YOU MUST NOT make for yourself a carved image or a form like anything that is in the heavens above or on the earth below or in the waters under the earth. 5 You must not bow down to them nor be enticed to serve them, for I, Jehovah your God, am a God who requires exclusive devotion, bringing punishment for the error of fathers upon sons, upon the third generation and upon the fourth generation of THOSE WHO HATE ME, 6 but showing loyal love to the thousandth generation of those who love me and keep my commandments.
God was not going to tolarate hatred of him in The Promised Land (the land of Abraham) were He was going to be worshiped.