MY DAD TAUIUGHT ME CHESS WHEN I WAS AGE 8. THEN HE WON 100 GAMES IN A ROW. AND I LEARNED FROM EACH GAME.
KEPT PLAYING AND FINALLY I WAS WINNING ALL THE GAMES.
ALWAYS TRY TO PLAY PLAYERS WHO ARE BETTER THAN YOU.
[SORRY FOR CAPS---MEDICAL CONDITION]
Yes it's important to play against high rated players. But if you play against the higher player with a huge rating you will learn nothing.
You can apply this rule in every game whether it is tennis or chess.
See this picture