If I or someone else try to execute my view that you should die by attacking you, I think you are justified in self-defense, don’t you?
I don’t think that contradicts the general principle of liberty.
Likewise if a political movement decides that your kind should die or otherwise be oppressed.