Politicians in Edinburgh and London must try to work with Donald Trump but watch for signs he has gone beyond the pale