I was actually more concerned about the Myanmar government doing this. Even only a small incident usually results in foreigners being banned for years.
There are sometimes exceptions along strategically important roads - like occurred in 2014 when there were some attacks in Kawkareik, along the then newly opened Myawaddy to Hpa-an highway. Foreigners were not banned from travelling that way because the government felt that incident was a one-off. Later, in mid 2015 some attacks occurred on both the old and new bypass road, at that time not yet officially opened. Foreigners were prevented from travelling that way only for about 10 days until the situation was brought under control. I was personally impacted by this.
You are also correct about foreign governments doing this, but it's the Myanmar government's rules that will determine whether a foreigner can go to a particular area or not.
In Thailand's case, Australia considers the whole country to be "exercise a high degree of caution" even though most of the country, especially rural areas, the northern and north-eastern parts are as safe as anywhere else in the region, including Laos, Cambodia and Vietnam. Yet those countries have a "exercise normal safety precautions" except for the Saisomboon region of Laos, which varies between "reconsider your need for travel" and "do not travel". At the moment, it's the former.
Myanmar is also "exercise a high degree of caution" overall, but strangely enough not for Yangon, Mandalay, Inle Lake etc. Yangon has had bombings and political violence and while I find it safe, I think it's a stretch to consider Yangon safer than say Bangkok or Chiang Mai. It's about the same. Also, if one takes the Australian government's warning to the letter, they advise against all travel to Myanmar's border regions thus meaning they advise that you don't enter or exit overland. Only fly in.
Therefore, sometimes the advice of foreign governments is a bit over the top. I don't think foreign government travel advice alone will affect tourism much; besides, Australia's advice to be cautious in Thailand hasn't slowed down visitor numbers to that country, which are 37 million a year, including 1 million Aussies and counting. What has slowed things down is a bad exchange rate, poor value for money, tourist safety, scams etc.
Renewed fighting will be what puts the nail in the tourism coffer in places like Hsipaw and Pyin Oo Lwin. Let's hope it doesn't escalate any further.
