That's not really correct. If you take a typical rapist or murderer, and a typical grey-hat hacker, the latter will be better off in prison than the former, at least at the start of their sentences.
However, a prisoner can choose to make it worse for himself by not obeying rules once in prison.
However, a prisoner can choose to make it worse for himself by not obeying rules once in prison.