In either of the cases aforesaid the court, if it is of the opinion that it will be dangerous that such person should go at large, shall commit him to the secure psychiatric unit for 5 years unless earlier discharged, released or transferred by due course of law.
RSA 651:9-a
1975, 388:1. 1985, 337:4, eff. July 1, 1985.