I have always fed in my enclosure. Honestly there have been a few times I got worried I would be mistaken for food
when my snake is really hungry (after a long weekend or maybe right after the feeding schedule was messed up by a shed).
My solution has been to block my snake with something like a paper bag or the top to his cage or a pair of shorts. Anything to stop it from letting its excitement lead it to do something it will regret. I only ever started this after my snake went for the water dish one time as I was replacing it, and usually is is not necessary. It had just been washed with hot water so maybe that was why? There was no way my snake was going for my hand because the corner he struck at was the opposite one I was holding.

Almost always it waits patiently in strike position for me to remove the barrier I keep the rat behind (which I started doing when I switched from mice to rats because I wanted to make sure my snake was ready so it wouldn't get bit or scratched).

I have never been bitten.