The Lord explains these things which have been said figuratively continuing, "He," that is, Satan about whom these metaphors are used, "is as the first of the ways of God," of his works. If this refers to the works or creation, it is because Satan was created among the first creatures, or also because according to some commentators he was more excellent than the other creatures. But it seems a more fitting to the intention to understand the ways of God to mean the works of his providence. We should consider that for God there is only one work which is properly fitting to his goodness: give ben...efits and be merciful. The fact that he punishes and allows adversities to happen is due to the evil of rational creatures, which was first found in the devil and derived by his suggestion to men. Therefore, he clearly says, "He is the first of the ways of God," because God uses different ways to give benefits and to punish evil. To preclude one from thinking that he is the first of the ways of God because he has the power to harm from himself alone, he says, "He (God) who made him will direct his sword," that is, his injurious act. The will to do harm comes from the devil in himself, and because of this he is called his sword. But the effect of harming can only come from the divine will or divine permission.
Source: Commentary on Job