Matchmaking is based on the number of Trophies you have, and the age you are in, not your experience level. This means you can attack or be attacked by players who are in the same Trophy range as you and near your age.