This shows that the wicked in hell shall endure both extreme cold and extreme heat: according to that in Job, They shall pass from rivers of snow to the scorching heat.
This verse conveys that those who are wicked in hell will experience a dramatic shift between two extreme conditions: moving from frozen rivers to intense heat, as described in Job.