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.