The magistrate, in fixing the amount of such bonds, shall be governed by the pecuniary circumstances of the accused and the nature of the offense threatened or about to be committed.