Sir Charles Walker said Matt Hancock's warning that people who lie over their travel history could be jailed for 10 years was “a stupid thing to say”.