The Russian military had no capability to invade Japan. Furthermore, many Japanese units in mainland of Asia continued fighting AFTER the call for surrender by the Emperor.
In the months leading up to August 1945, Japan was constantly negotiating with Russia. They wanted to extend the neutrality pact, or use Russia to negotiate better terms with the allies.