Whoever, being married, falsely and fraudulently represents himself or herself as competent to sell or mortgage any real estate to the validity of which sale or mortgage the assent or concurrence of his wife or her husband is necessary, and under such representation, willfully conveys or mortgages the same, shall be imprisoned not more than 10 years.