This is one of the acrostic psalms, where each line or verse begins with a different letter of the Hebrew alphabet. Since this cannot be reflected in the English translation, the structure of these psalms is less apparent to us.
What gives focus to the psalm is that every line is about God’s greatness and giving praise to him. The psalm is full of superlatives – notice how many times the word “all” is used in these verses. All of these statements about God remind us of his goodness and greatness, and help us continue to put our trust in him.
When we have given in to the temptation to sin, we may also be tempted to blame God for the circumstances that we see as having led to the sin. But James asserts that the source of temptation is our own desires, not God. God is wholly good, and can neither tempt us to sin nor be tempted by sin.
We are very changeable, sometimes doing good and other times doing what is wrong. But God is unchanging, always good in His character and in all that He does in our lives.