Whosoever contracts a marriage although he is already married, or whosoever contracts a marriage with a married person, shall be liable to imprisonment not exceeding three years or a fine.