Arguably China was in quite a sorry state at the moment Japan started attacking it & they were quite successful as a result.
It was the western colonial powers & most importantly the USA that they attacked & could not have realistically won against.