When you have nothing to do in your life (can't find any activity) you will get into trouble - you will likely do things which you don't really need to do. It is used especially in cases when someone becomes a criminal
Idle hands are the devil's workshop
Examples
Scientists have proved that idle hands are the devil'l workshop. Their recent research shows that lonely people are more prone to evil acts than those who can rely on somebody.