The only thing to do is to have a contingency plan. If I go to jail for a period of time I think of what I'd do: preserve whatever savings I have, make sure my wife is at peace with it and will stay or not take everything I have, that I'm fine working in construction or bag groceries, and that I can live with nothing but books, some water, pasta and a small place because that's most likely the only way the future will look if I make such a mistake.
If you're at peace with it and understand life can turn that way, you're not even scared of jail anymore. I'll live through it and stay satisfied with whatever I find.
I'd rather hire the guy who got locked up for some raging violence in his younger years and has since mellowed with age, as one does, than some financial crook who will try some dishonest sneakery to fuck me over at the first available opportunity.