It is stupid to desire going to prison.
Bob doesn't have a home and is thinking of ways to get a roof over his head.
Bob wants to have some sort of shelter.
Bob goes to a homeless shelter and applies for entry, so he can get back on his feet.
Bob commits a minor felony, so he can go to jail and live in prison for a while.
The shelter accepts Bob, and he has a place to stay for a while.
The felony goes on Bob's record and Bob has a very difficult time in prison.