You have been born again, born from above. You have been given a new nature You have the mind of Jesus Christ, and have been brought forth by the Word of truth. Therefore in times of trials, you should act differently. So James shows us in Vs 19-20 that these are the qualities you need in times of trials:
19 So then, my beloved brethren, let every man be swift to hear, slow to speak, slow to wrath; 20 for the wrath of man does not produce the righteousness of God.