Cairo has a lower crime, and higher safety index than Los Angeles. Egypt as a whole is safer than the United States.
https://www.numbeo.com/crime/compare...+Angeles%2C+CA
Your biggest danger is heat and dehydration. You'll get the usual touts and people trying to sell you stuff, and taxi drivers overcharging, but they are not dangerous.
I had zero concerns walking around solo at night...it's when the city comes to life. Restaurants and cafes open, and Egyptian families come out with their kids at night.
A guided tour will help you see most things in a short amount of time.