The court, upon the conviction of any person of a violation of the provisions of chapter 22-22 in which the victim was a child or upon an adjudication of a juvenile as a delinquent child for a violation of the provisions of chapter 22-22 in which the victim was a child, may, as a part of the sentence or adjudication, order that the defendant or delinquent child not:
No condition imposed pursuant to this section applies once the victim attains the age of majority. A violation of any condition imposed pursuant to this section is a Class 6 felony.
SDCL 22-22-7.5