know when to fold ’em

Came across a quote from “The Gambler” reading that in marriage you do have to “know when to hold ’em” and also “know when to fold ’em.”

Not seeing the film, I’d only guess you’re supposed to distinguish between the times when you should speak out and when you should keep quiet and ‘overlook’ some things.
What do you think?

‘The Gambler’ is the song.

It’s from the point of view of a card-player - a Poker player.

He advises the listener that you have to treat a woman in the same way as he would treat his hand of cards when he is playing.
If you ‘hold’ in a game of Poker, you keep the cards you have. If you ‘fold’ you give up and place your hand down on the table declaring yourself out of the bets,
With women, he says, you have to know when to keep them and know when you should ‘let them go/throw them away’ - get out of the relationship.
He says you should know when to leave slowly and quietly and when to make a quick exit and also advises that you should consider whether or not to leav when you’re on your own, not when you’re with the lady.

You gotta know when to hold ‘em,
Know when to fold ‘em,
Know when to walk away, know when to run.
You never count your money
While you’re sittin’ at the table
There’ll be time enough for countin’
When the dealing’s done.

Thank you, Bev.