S.C. Code Ann. § 16-9-460
(E) Subsections (A) and (B) do not apply to programs, services, or assistance including soup kitchens, crisis counseling and intervention; churches or other religious institutions that are recognized as a 501(c)(3) organizations by the Internal Revenue Service; and short-term shelters specified by the United States Attorney General, in the United States Attorney General's sole discretion after consultation with appropriate federal agencies and departments, which:
(iii) are necessary for the protection of life or safety.
Shelter provided for strictly humanitarian purposes or provided under the Violence Against Women Act is not a violation of this section, so long as the shelter is not provided in furtherance of or in an attempt to conceal a person's illegal presence in the United States.