Simultaneously, in the US there is a well-established recognition of the right to self-defense. However, this is tempered by a minority of states imposing a duty to retreat. Seven states also impose a duty to comply with a criminal’s “negative demands” and one with both positive and negative criminal demands(!).
Some countries do not recognize the right to self defense and have no duty to protect, and there are all flavors in between, so YMMV depending on the country you live in or are visiting.