Magic itself is dangerous no matter if it’s light or dark. She didn’t know and Strange has taken control of other entities forcefully which is considered dark magic. Dark Magic gets out of hand when the wilder doesn’t have a strong will and Wanda was fragile and Doom took advantage of that