Whoever knowingly and willfully marries the husband or wife of another, in any case in which the husband or wife would be punishable under the provisions of this chapter, shall be fined not more than $2,000 or imprisoned not more than 3 years, or both.