It used to be legal to repel foreign invaders.