All the Japanese had to do was stop their barbarous attack on China ;Japan had no right to other nation's resources or lands.
That is true, but we had no legal right to stop them. We declared economic war on Japan, they subsequently attacked us, and the rest is history.
I am not defending Japan, but there are too many naive folks that believe the Peal Harbor attack was unprovoked.