387. Whoever, in order to commit extortion, puts or attempts to put any person in fear of death or of grievous hurt to that person or to any other, shall be punished with imprisonment for a term which may extend to ten years, and shall also be liable to fine or to whipping.