Why is there a difference between get_inverse_kin and is_within_safety_limits?

I have posted a workaround in this post: