My opinion is that God is able and can do both. When Moses struck the rock...
Does He punish or folds His hands and let the devil do the punishing?
Judges 6:1 - 40
1 The people of Israel did what was evil in the sight of the Lord, and the Lord gave them into the hand of Midian seven years. 2 And the hand of Midian overpowered Israel, and because of Midian the people of Israel made for themselves the dens that are in the mountains and the caves and the strongholds.