Iraq did a move like that in 2002. The United States demanded that Saddam Hussein let weapons inspectors in (to look for WMDs that, as it turns out, did not exist), and something, something, bullshit, something 9/11.
Saddam Hussein thought that telling the United States to go pound sand was the correct move. He thought that all the talk by the warhawks in the Bush administration was just bluster.
As it turns out, that talk was not bluster, telling the US to sod off was not the correct move, he got to dance the hemp fandango, and 16 years later, Iraq is still in the middle of a civil war.
These kinds of geopolitical failures happen when one country's leadership mispredicts how another country will react to its actions. This can happen in any year, be it 1939, 1941, 2002, or 2019.