Two of the world’s biggest economies are at risk of recession