Whoever shall attempt to commit any crime, which attempt is not otherwise made punishable by chapter 19 of An Act to establish a code of law for the District of Columbia, approved March 3, 1901 (31 Stat. 1321), shall be punished by a fine not more than the amount set forth in § 22-3571.01 or by imprisonment for not more than 180 days, or both. Except, whoever shall attempt to commit a crime of violence as defined in § 23-1331 shall be punished by a fine not more than the amount set forth in § 22-3571.01 or by imprisonment for not more than 5 years, or both.