Term: carcerophobia
Example: he does not steal anything, not even a thing worth a farthing because he has carcerophobia
Definition: fear of landing in jail