The topical steroids
are not always dangerous. The conc strength of the steroid cream is also important. I hope your doctor would have weighed the benefits vs risk while prescribing you the right treatment.
Raising an alarm at right time while continuing to use the medicine is the best thing right now.