Uhm, no. This did not almost happen, not even close. If the Germans let the Soviets invade the Soviets simply sit on their ass and say "No no, by all means, be my guest, after you". You know, like they did in reality.
Stalin may have made many mistakes but he wasn't stupid enough to fall for...