I believe this is the poem which the question is based on :)
Some say the world will end in fire,
Some say in ice.
From what I’ve tasted of desire
I hold with those who favour fire.
But if it had to perish twice,
I think I know enough of hate
To say that for destruction ice
Is also great
And would suffice.
There are two ways in which you can look at poems, you can look at them metaphorically or literally, in this poem, we will view this as metaphorical. Frost uses two elements in the poem, fire and ice, both of which are opposing. This can infer that in the world there are the good people and the bad people. This is reinforced as the fire and ice in the poem are symbolic. The fire could represent the hatred and the ice could represent the positive feelings in people. Therefore, Frost cautions mankind through this poem by using fire and ice as human emotions and stating that hatred and love will end the world.
Have a great day <3