proverb

When it thunders, the thief becomes honest.

Theme: fear Keyword: fear

means that

Fear of punishment may temporarily restrain dishonest conduct without changing character.

Example

The fraudulent trader behaved impeccably while inspectors were present.