When this revelation was received, Joseph Smith was facing harsh criticism from several members of the Church who had turned against him (see “Ezra Booth and Isaac Morley,” Revelations in Context, 130–36). What warnings did the Lord give in Doctrine and Covenants 63:1–6, 32–37 regarding “the wicked and rebellious”? How are such warnings evidence of God’s love?

https://www.churchofjesuschrist.org/study/manual/come-follow-me-for-individuals-and-families-doctrine-and-covenants-2021/24?id=p5&lang=eng#p5

The Lord warns not only that He can cast a soul down to hell; not only that wickedness will reap the whirlwind; but that He “will come down … and consume the wicked with … fire”

The Lord is slow to anger, and he always warns before exercising His anger (see 2 Ne 25:9). His anger is just. He is warning His children of the consequences of poor choices. This is evidence of His love.