I didn't know this story so I looked it up [0]. According to Plutarch, it's true: Caesar was captured by pirates in his twenties, and was insulted by their lowball ransom of 20 talents--he thought he was worth at least 50. He told the pirates they should up the ransom and that once it was delivered and he was freed, he'd have them all crucified. They thought it was a pretty good joke. He wasn't joking. Once free, he raised an army and a fleet and went back to the pirate's camp, capturing them and having them thrown in prison. Apparently he showed them mercy by having their throats cut before they were crucified, however.
It's actually an extreme case of privilege. The pirates were probably some very poor commoners who turned to a life of crime, while he was a member of one of the most powerful political families in Ancient Rome.
His upbringing was nothing like that of what were probably children the dirt poor farmers.
He was lucky that no one snapped (I imagine some did but the thought of such a huge amount of money meant that everyone was kept in line) and the rest is just a bold and vengeful ultra rich, ultra privileged person getting their revenge.
It is very bold, but my point is that commoners were naturally very afraid of nobles. On top of that, in this particular case they knew the financial value of capturing a noble, let alone the fact that this particular noble promised them even more money.
As another commoner you'd probably get gutted like a fish if you'd try the same thing.
It's true but being noble was its own thing with its own particular risks and costs. If you were to choose undeserving nobles across history IMHO J C would be among the worst sells.
I suppose his ending wasn't the greatest, but Dante placed his betrayers into a special place in literary hell.