Even the Best can attempt to worship God in false ways….one sees this in other passages.
Exodus 32:4 And he received them at their hand, and fashioned it with a graving tool, after he had made it a molten calf: and they said, These be thy gods, O Israel, which brought thee up out of the land of Egypt.
1 Kings 12:28 Whereupon the king took counsel, and made two calves of gold, and said unto them, It is too much for you to go up to Jerusalem: behold thy gods, O Israel, which brought thee up out of the land of Egypt.
Or even worse….not even attempting to worship the God(s) which brought thee up out of the land of Egypt.
1Ki 16:31 And it came to pass, as if it had been a light thing for him to walk in the sins of Jeroboam the son of Nebat, that he took to wife Jezebel the daughter of Ethbaal king of the Zidonians, and went and served Baal, and worshipped him.
1Ki 16:32 And he reared up an altar for Baal in the house of Baal, which he had built in Samaria.
1Ki 16:33 And Ahab made a grove; and Ahab did more to provoke the LORD God of Israel to anger than all the kings of Israel that were before him.
Read more here.