Psalms 106:36 And they served their idols: which were a snare unto them. 37 Yea, they sacrificed their sons and daughters unto devils, 38 And shed innocent blood, even the blood of their sons and of their daughters, whom they sacrificed unto the idols of Canaan: and the land was polluted with blood.
When individuals in bygone years claimed to have worshiped gods of wood and stone, the Scriptures clarified who they were actually worshipping. It was not merely the productions of their hands, nor the vain imaginations of their minds. It was actually satan who was being worshipped, for all of the false concepts, practices, and productions pertaining to false worship are centered in him, and originate from him.
Thus, according to the Bible, any person who bowed down to idols, or who venerated man, even though in most cases they might have been ignorant of the fact, were actually worshipping devils. The Psalmist in the above passage makes a specific mention of the instance, which took place at Baal-Peor. He is referring to the event where Balaam had invited the children of Israel to join the Moabites in worshiping their false gods. The Hebrews accepted the invite, and the rest is history.
At the venue in question, there were no visible, live devils, who would certainly have scared the people. It was just your regular graven image that they were bowing down to but the Scriptures certify that there were invisible agencies present, who received their worship.
1st Corinthians 10:20 But I say, that the things which the Gentiles sacrifice, they sacrifice to devils, and not to God: and I would not that you should have fellowship with devils. 21 You cannot drink the cup of the Lord, and the cup of devils: you cannot be partakers of the Lord's table, and of the table of devils.
May God add His blessing to the study of His word. “Good night” and God bless!