Any person knowingly interfering with an order of the juvenile court is in contempt of court. However, a child who is under the continuing jurisdiction of the court for reasons other than having committed a delinquent act or a juvenile petty offense may not be adjudicated as a delinquent solely on the basis of having knowingly interfered with or disobeyed an order of the court.