Mentally detach yourself from others so they can’t control you.

Set boundaries calmly but firmly—don’t explain, just enforce them consistently.