While I don't agree with terrorism, this is incorrect. International law is quite deliberate in allowing the victims of aggression to do almost anything against the aggressors to get control of their land back, including terrorism. Those who wrote the law hoped this would be a sufficient deterrent against invasions.