The opposite of “safe” is “dangerous”
“Safe” pertains to not feeling exposed to risks or danger; e.g. “It’s relatively safe when you go out with your parents.”
“Dangerous” means when something is poses risks and danger; e.g. “Going to the forest at night by yourself could be dangerous.”