AI are such hypocrits

Korea was bombarding a city state, got it down to almost rubble but had no melee unit to take it. I bought a knight and stole it from under their noses. Next turn every AI is denouncing me for inflicting greviences... how do you avoid this or is it just part of the game to make it harder