If I recall there were encounters between the Soviets and Japanese from
1932 to 1939 that ended in Japanese defeat (
Battles of Khalkhin Gol). The Japanese decided the would sign a treaty to keep the two parties from interfering with each other.
Had the Japanese won these battles they would have gone to war with the Soviets and probably not bothered with the Attack on Pearl Harbor or the Dutch East Indies.