Meaning of “draw the line at sth” - Learner’s Dictionary

draw the line at sth

to never do something because you think it is wrong:

I swear a lot but even I draw the line at certain words.

(Definition of “draw the line at sth” from the Cambridge Learner’s Dictionary © Cambridge University Press)