How do you know when to give up - on a sick kitty

It is not an easy decision to make. I have done it and i cry every time. It is a shame we can't be as good as our pets think we are.