The creature doesn't enter with a +1/+1 counter on it. It enters, then the ability triggers. If either that creature or Juniper Order Ranger leaves the battlefield before the ability resolves, the remaining creature will still get a +1/+1 counter.

Artwork
Loading artwork…
Juniper Order Ranger
March of the Machine Commander · #330 · EN
Nonfoil—Foil—
Card rules
Whenever another creature you control enters, put a +1/+1 counter on that creature and a +1/+1 counter on this creature.
2/4
To protect the alliance between Kjeldor and Yavimaya, they trained in the ways of both.
Uncommon · Illustrated by Greg Hildebrandt
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
PreDH Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions