Any witness who, after being duly sworn, makes a false statement of fact material to any question under investigation before a housing court, knowing such statement to be false or not knowing or believing it to be true, shall be guilty of an offence and liable to a fine not exceeding two thousand dollars or to imprisonment for a period not exceeding three years or to both such fine and such imprisonment.