Never had one strike at me thinking I was food. Had two hatchlings strike defensively. Had one adult (when I had a large aquarium style viv for it) strike after he put his food down. And had the other adults stare at me amd prepare to strike, but when I moved they realized I wasn't food and turned to run away.
Feeding in their enclosure works fine. If you're using a viv/aquarium and have a heat lamp for it, set F/T food under the light if the snake doesn't take it. Leave it for a day and the snake will likely eat it in that time.