Japan was able to defeat both China and Russia during their expansion into Asia due to a combination of factors, including their military strength, technological advancements, and strategic planning. Additionally, Japan had a strong sense of nationalism and a desire to establish itself as a dominant power in the region.