Airsoft guns usually always have a very identifiable orange tip to show that they're relatively harmless. The issue is that nothing is preventing a person from putting an orange tip on a real gun.
Awareness is the first step you need to take in order to protect yourself.