There will always be dangerous locations but avoiding them is easy. Read blogs, travel guides, and forums to understand where you should and shouldn't travel.
Experience will also have a significant impact on your perception of danger because it affects your reactions. For example, encountering a bear during your backpacking trip is dangerous, but knowing how to act during this situation can make a big difference.