Line in the sand
Look up draw a line in the sand in Wiktionary, the free dictionary.
Line in the sand is an idiom, a metaphorical (sometimes literal) point beyond which no further advance will be accepted or made.
Related terms include unilateral boundary setting, red lines and ultimatums to define clear consequences if a line is crossed.