This won't discourage the cat from eating it, but it may cause the cat to associate you with food, which is good in general. Put out your hand to let the cat sniff it. If the cat starts hissing, whisking its tail back and forth, or its ears go back, etc., you're too close...