What does ‘Don’t take any wooden nickels’ mean?

( phr ) Don’t do anything stupid. When you go to the big city, Luke, don’t take any wooden nickels.