Check your pipboy to see how bad your relationship is with the NCR. If it is very bad, you may have to load to a much earlier point. If it is not so bad however, you can try to resolve the situation by gaining a bit of positive fame. The quest from ranger Andy is very simple, involves killing a couple of legion guys, and gives a bit of fame.
Like LessPop_MoreFizz mentioned, the only way to normally prevent the infame hits is to do the add-on before starting the Things that go Boom and Render unto Caesar quests. The only way to prevent the infame reset triggers is thus to not enter the lucky 38 or the tops casino before finishing the add-on.
To reset the infamy of the factions use the following console commands:
For the NCR use:
setreputation 1 000f43de 0
For the Legion use:
setreputation 1 000f43dd 0
This keeps your normal fame, it just makes them forget all the bad stuff you did.
I think that simply removing the don't tread on the bear quest is not enough. When this quest is failed certain NCR NPC's dissappear from the game. I think you need to reset the quest status back to phase one, and enable the NPC's again.
Try this to reset the quest:
setstage 00167f0e 1
And use these commands to enable the two NPC's (replace refID with 00116840 (Crocker), and 001206fe (Moore):
prid refID
disable
enable
kill
resurrect
moveto player
(For the best effect stand at the position the NPC would normally appear).
Not 100% sure this is all you need to do, the don't tread on the bear quest might set some more variables that you need to reset yourself, look at the quest console commands and try a few of those.
Best Answer
You are wearing Brotherhood power armour. After what happened at Helios One, the two factions have an intense hatred of each other, and the NCR will attack Brotherhood soldiers on sight. Unfortunately, that includes you. Try wearing normal power armour instead (i.e. power armour that does not include "brotherhood" in the name). You can buy most power armour from the vendor in the Hidden Valley Bunker, but make sure to buy the correct set.