Something similar happened to me once. We found a little guy on one of our walks and even though he could barely move he jumped right onto one of our shoes and looked up at us. Couldn't really leave him at that point.
He only lasted a week after that, but he was fed and loved and comfortable. I think that's all any creature can hope for, before they go.