5. Any court, when it convicts a person of infringing a law of Québec, may suspend the passing of the whole or part of the sentence, and permit such person to be released on supervised probation, on such conditions as it prescribes and for a period not exceeding two years, when it is of opinion that the nature of the offence, the circumstances in which it was committed and the antecedents, character and possibility of rehabilitation of such person so justify.
Nevertheless, where a minimum punishment is prescribed for such offence, the court shall impose such punishment but may suspend the passing of the rest of the sentence, and permit such person to be released on supervised probation in accordance with the preceding paragraph.