idiom

When the chips are down.

Theme: adversity Keyword: gambling

means

When circumstances become difficult and one's true abilities or character are tested.

Example

When the chips are down, she always finds a way to help.