Conventional conflicts can escalate into nuclear ones but not when done right. The US is in Syria today because Russian conventional forces are too weak. Otherwise, they can safely muscle the US out under the correct reasoning that Russian forces are invited by Syria's government while American forces are invading Syria. With the clear geographical advantage, if Russian conventional forces were strong enough, they would implement quick power plays and shut the US out before there as even a chance to get into a conflict that might go nuclear. The US dared to strike a Chinese embassy in Yugoslavia because Chinese conventional forces weren't all over the place with modern weapons breathing down the necks of their American counterparts. The 1993 Yinhe Incident occurred because China's navy could not protect its merchant ships; a more powerful conventional navy could have sailed to the Yinhe and guided it right out of America's blockade threatening unequivocal reciprocation to any use of force to stop them. There is virtually no threat of nuclear escalation in these cases. This is why people invest in the conventional military. They're not all idiots wasting their money.
As to the specific percentage that should be invested in the military for China, I don't know and cannot begin to do any calculations with the information available to me. In general, the less you spend on the military, the faster you grow your economy and thus in the long run you will increase your ability to afford and maintain a large military. However, the threat of immediate challenge and inability to keep up with modern weapons rises. The higher the percentage spent, the lower this immediate threat is, but at the price of somewhat diminished ability to afford a larger military in the long run. I trust Beijing to find this balance.
Russian's geographical advantage in the Syrian conflict is quite limited. There is no viable land route for example. There are mountains all over Northern Turkey.
The sea lanes are all NATO country dominated.
Israel and Jordan facilitate insurgent resupply. Saudi Arabia is a major sponsor for ISIL. I think a lot of people think that Russia has all these troops in Syria. When their presence over there has been really limited thus far.