The Mongols tried to invade Japan twice and they failed twice
Many Chinese dynasties have tried to invade Japan and failed
And the only areas Japanese people can live and farm in are scattered plains mainly near the coast because the central parts of the islands are rather mountanous
Also Japan is prone to earthquakes, tsunamis, and typhoons