If the judge finds that there are reasonable grounds to believe that the defendant-respondent is mentally ill, as defined in G.S. 122C-3, and is dangerous to himself or others, and the judge determines upon appropriate findings of fact that it is appropriate to proceed under the provisions of this Article, he may order that the respondent be held under appropriate restraint pending proceedings under G.S. 15A-1321. (1977, c. 711, s. 1; 1985, c. 589, s. 12.)