Squirrels have a wide range of predators. When attacked, a squirrel will choose whether to fight or flee, depending on the threat. They have numerous defense mechanisms to avoid a fight.
If a California ground squirrel is attacked by a rattlesnake, it may fight back using the unique mechanism of heating up its tail.
Questions you may have include: