A target expression threshold dictates invader defense and autoimmunity by CRISPR-Cas13