God moved David to number Israel. God punished David for his sin and the punishment was absolutely just. I phrase it that way because God's will is sovereign, and everything man does is done willingly. The willing character of man's deeds always makes him accountable for them. I don't want to do it.
Man sins willingly.
But this inability to understand does not bother me in the least. And it does not bother me, simply because I cannot understand God's work in any single part of the creation. I cannot understand how God makes a blade of grass to grow. I cannot understand how God forms a baby in the womb of its mother. I cannot understand how the God moves the planets in their orbits around the sun in our solar system.