Every person who attempts, by means of any threat, such as is specified in Section 519 of this code, to extort money or other property from another is punishable by imprisonment in the county jail not longer than one year or in the state prison or by fine not exceeding ten thousand dollars ($10,000), or by both such fine and imprisonment.