You can set TCP in cartesian space monitoring with SafetyConfig.
Or, you can continuously read each joints or cartesian position in backgrounds and data exchange with main thread, stop the motion etc...
BTW, I set my safety configuration like, each position +-5 degree from each limit,,,