“Trees” are not a coherent phylogenetic category. On the evolutionary tree of plants, trees are regularly interspersed with things that are absolutely, 100% not trees.
Although Mongolia does not share a border with Kazakhstan, its westernmost point is only 36.76 kilometres (22.84 mi) from Kazakhstan, nearly making a quadripoint.