I've always thought of the idea of the devil as like an angel of justice

evil souls being tortured for eternity? Sounds like justice to me