And how do you know what he did NOT deserve?
Since there was no one but him and the snake involved, how could it be unjust? - Where would the evil have come from?