Should you not offer little things to homeless people?

I was on the subway and a homeless guy was eating ice cream with the lid of the container. We had just gotten food, and I had a spare fork

I know a fork isn’t as good as a spoon, and I could have been told to fuck off. I was about to offer it, but my friend stopped me. And gave me a look which said that’s incredibly stupid

Was I wrong to want to offer it?

Edit: thanks for all of your responses! I thought that the chance of danger was pretty low, and would be a one and done thing if it did get dangerous. I get even a small act is not worth the possible danger