The US president’s flipflopping does not work when it comes to dealing with any serious situation, and the Russia-Ukraine war is teaching him that lesson