It shall be unlawful to confine any minor under the age of eighteen years, accused or convicted of crime, in the same section of any jail or prison in which adult prisoners are confined. Suitable quarters shall be prepared for the confinement of such minors.