The only two state visits to Britain by USA presidents in the past were in 2011, when President Barack Obama visited, and in 2003, President George W. Bush.
However, he told the magazine: "It starts with name-calling, it can lead to criminal damage and graffiti (and) ultimately to the situation where Jo Cox is murdered or a terrorist can come to London and try to divide communities".
British Prime Minister Theresa May extended an invitation for a state visit to Mr Trump during a visit to Washington in January 2017, just days after the US President had taken office.
Though he did not name the former presidents, Khan was speaking about Barack Obama, who visited in 2011, and George W. Bush, who visited in 2003.
The mayor of London has round-the-clock police protection after threats on social media, he has revealed in an interview with The Times.
"It's possible to have a working relationship without having a state banquet".
Khan and Trump have feuded in the past. Khan has repeated criticized Trump over his treatment of women and minorities, and lashed out at Trump over his domestic policies, particularly Trump's attitude toward Islam.
State visits are formal trips to Britain by heads of state from countries overseas, with considerable pomp and circumstance that is not afforded to less-formal visits by world leaders.
President Trump is due to arrive in the United Kingdom on June 4th or 5th, and he will attend not just a state banquet hosted by the Queen and other members of the British royal family at Buckingham Palace, but a host of other meetings with leaders of the UK's conservative party.
"The impression is being given that you can get away from it - that you get a get-out-of-jail card".