If the crime committed does not involve aggravated public danger or if it is of a lesser order of gravity, the period of short-term detention shall not exceed two months and, in the event of a serious or particularly serious crime, it is set at three months.