Avoid Border crossing Mynamar

Is there a way to do route planning to exclude national border crossings? I want a route from Chiang Mai to Kanchanaburi and the planner keeps taking me through Myanmar, which is prohibited.

Here you are:

Not possible to avoid countries. Here a gpx with the borders from Myanmar. Download, then add this gpx as overlay, so the borders are better to see. Planning should be easier.

Borders_Myanmar.gpx (2,0 MB) (Status, Jan. 2025 from OpenStreetMap)