proverb
meaning that
It is more likely to do a bad think and get into troubles, when you have nothing to do.