Any person who shall threaten another with the infliction upon the person, honor or property of the latter or of his family of any wrong amounting to a crime, shall suffer:
1. The penalty next lower in degree than that prescribed by law for the crime be threatened to commit, if the offender shall have made the threat demanding money or imposing any other condition, even though not unlawful, and said offender shall have attained his purpose. If the offender shall not have attained his purpose, the penalty lower by two degrees shall be imposed.
If the threat be made in writing or through a middleman, the penalty shall be imposed in its maximum period.
2. The penalty of arresto mayor and a fine not exceeding 500 pesos, if the threat shall not have been made subject to a condition.