The USA allows you to visit anywhere you want, and they maintain a travel advisory list for every country. Both Israel and the West Bank are listed as “High Security Risk”, not “Do Not Travel”. You can still visit “Do Not Travel” places at mostly your own risk.
The reason given for the advisory is “terrorism and civil unrest”. Nowhere in their explanation does it say you will be actively shot at by the acting “defense” force or police.
Hell considering the circumstances, it’s probably better to avoid run ins with the IDF, which is the opposite of what the advisory says to do lol.