This book is written by Peter to encourage his readers to stand firm in God’s grace (5:12) in the midst of the suffering they are experiencing. He wants them to focus their attention on what Jesus did for them on the cross and avoid becoming like those who have not trusted Christ.
There is a tendency for the worst to come out of us when we are under stress. The answer is focusing on Jesus, rather than avoiding stress.