Large-scale mapping of gene regulatory logic reveals context-dependent repression by transcriptional activators