(A) For the purposes of this section "prostitution" means the practice or instance of engaging in sexual activity for money or any other thing of value. (B) It is unlawful to: (1) engage in prostitution; (2) expose indecently the private person for the purpose of prostitution; or (3) reside in, enter, or remain in any place, structure, building, vehicle, trailer, or conveyance for the purpose of prostitution. (C) In the prosecution of a person who is charged with a violation of this section, it is an affirmative defense to those charges if the person was under duress or coerced into committing the offense or the crime was committed as a direct result of or interrelated to victimization of human trafficking. (D) A person is immune from prosecution under this section if that person was under the age of eighteen at the time of the alleged act. (E) A person who violates this section is guilty of a misdemeanor and, upon conviction, must be punished as follows: (1) for a first offense, a fine not exceeding two hundred dollars or confinement in prison for a period of not more than thirty days; (2) for a second offense, a fine not exceeding five hundred dollars or confinement in prison for a period of not more than sixty days, or both; or (3) for a third or any subsequent offense, a fine not exceeding three thousand dollars or confinement for a period of not more than one year, or both. (F) Notwithstanding the provisions of Sections 22-3-540, 22-3-545, and 22-3-550, a violation of this section must be tried in magistrates court.