Days after a Michigan mother was put in jail for ignoring a court order to vaccinate her 9-year-old son, she said that given the choice, she would “do it all again.”

Rebecca Bredow, who lives in the Detroit area, was sentenced last week to nearly a week in jail for contempt of court almost a year after an Oakland County judge ordered her to have her son immunized.

“I was trying to protect my kids,” the 40-year-old mother told ABC News on Friday. “I was trying to stand up for what I believed in, and it was worth it for me to try and take the risk, because I was trying to stop the vaccinations from happening.”

“Never in a million years did I ever think that I would end up in jail standing up to try to protect my kids, and standing up for my beliefs,” she said.

In her fight against vaccinations, Bredow was jailed and lost primary custody of her son, then discovered that he was immunized against her wishes.

Her ex-husband, James Horne, who shares custody of their son, wanted the child to be vaccinated, but Bredow had refused to do it on religious grounds.

“I can’t give in against my own religious belief,” she told The Washington Post last month, adding she is not against vaccination. “This is about choice. This is about having my choices as a mother to be able to make medical choices for my child.”

But Oakland County Circuit Judge Karen McDonald told Bredow last week that she is not the only parent who deserves a say in their young son’s care.

The judge granted Horne temporary custody of their son and ordered him to be vaccinated – and sentenced Bredow on Oct. 4 to serve seven days in county jail. The Oakland County Jail gives inmates a one-day credit after successfully serving five days behind bars, so Bredow was released about midnight Monday, according to the Detroit Free Press.

“It was the worst five days of my life pretty much,” she told the newspaper about her time in jail, “except for the fact that I just found out that he was vaccinated and I’m not going to get him back today.

“It’s been a rough few days to say the least,” she said.

Parents who either delay or refuse vaccinations for their children do so for a number of reasons, including religious, personal and philosophical beliefs, safety concerns, and a desire for more information from health-care providers, according to 2016 research published in the Journal of Pediatric Pharmacology and Therapeutics.