(a) The sheriff may not place in administrative segregation a prisoner who is pregnant or who gave birth during the preceding 30 days unless the sheriff or the sheriff’s designee determines that the placement is necessary based on a reasonable belief that the prisoner will harm herself, the prisoner’s infant, or any other person or will attempt escape.
     (b) The sheriff may not assign a pregnant committed person to any bed that is elevated more than 3 feet above the floor.