I think most crew know better than to offer homemade goodies to flight crew, unless they know them well.
Some of our regular commuters will bring commercially packed candy, like M&M's. I'm OK with one of us eating that...if the FO wants it, it's all his. If he doesn't want any then I might eat it.
But unfortunately in the world we live in you just have to be careful.