How could God use a lying spirit? Why did the king of Moab sacrificing his son result in victory? Why did God strike Uzzah dead for touching the ark?

Links:

Why did God use a lying spirit to deceive Ahab? - https://www.gotquestions.org/lying-spirit.html

Why did God strike Uzzah dead for touching the Ark of the Covenant? - https://www.gotquestions.org/Uzzah.html

Why was there great indignation against Israel after the Moabite king sacrificed his son on the wall (2 Kings 3:27)? - https://www.gotquestions.org/Moabite-king-sacrificed-his-son.html

Did Esther have sex with Xerxes before they were married? - https://www.gotquestions.org/Esther-Xerxes.html