Deuteronomy 23:17

There shall be no whore of the daughters of Israel, nor a sodomite of the sons of Israel.

The verse together with the verse that follows it lays a demand for sexual purity upon everyone connected with the institution. No place is to be given there to persons of impure habits or loose conduct, who must be kept away. Parents whose children are impure are to take them elsewhere rather than keep them in that connection. This separation is required so that the impure will not corrupt others.