And India intervened in support of 'rebels/terrorists' in Junagadh (territory that had legally acceded to Pakistan months earlier), and then invaded, occupied and annexed it, before the Tribals intervened in J&K.
Firstly, India entered Junagadh on 9th Nov, while the Pathans, backed by PA and led by PA officers entered in Kashmir on 22 Oct, 1947, although the first such transgression by PA into Kashmir territory, then an independent Princely State, was recorded in the last week of August, 1947. Kashmir lodged an official complaint with Pakistan on 4th (or 6th?) Sept, 1947. Before entering Junagadh, India gave plenty of opportunities to Pakistan to amicably solve the problems of Junagadh, Kashmir and Hyderabad, through negotiations. Mountbatten had personally proposed a plebiscite to Jinnah, on 1st Nov, 1947. Jinnah rejected. He wanted it all. He ended up loosing all. Your attempt to paint India's legitimate intervention in Junagadh as 1st cause is just a lousy attempt to rationalize your country's irrationalities.
Secondly, India didn't 'invade' or 'occupy' or 'annex' Junagadh. After Pakistan - too busy to militarily annex Kashmir by bullying the ruler - failed to carry out the basic obligation as a sovereign state, in spite of repeated appeals by the ruler, and after the ruler had fled with his concubines and state's gold, the people of Junagadh, in view of rapidly deteriorating condition of a ruler less, administration less, law less state, forced the Dewan to ask India for intervention. That letter to India, asking for intervention, was representative of public will, where the Dewan's signature was mere formality. India intervened, which you are deliberately calling 'invasion' only after that, thus legitimizing the so called 'military' action. Instead of 'occupying' Junagadh, which India could have easily done, India organised a plebiscite where the citizens of Junagadh overwhelmingly vetted India's 'military' action and acceded to India. It is hardly what 'annexations' are made of.
Even if Junagadh had happened before Kashmir, it still couldn't have been a justification for Pakistan's misadventures in Kashmir. India had intervened legitimately while what Pakistan did in Kashmir was unadulterated state sponsored thuggery.