Bernie is an interesting example for a number of reasons.
The likelihood of being caught is probably a bigger factor in deterrence than the severity of the punishment itself. White collar criminals probably get away with a lot of small crimes (I am guessing).
Madoff is a very extreme example because he was doomed to eventually be caught. But we can look at it the other direction and consider how many hundreds(?!?) of small and large crimes did he get away with before it all collapsed on him?