It just comes with time. When you are still learning the ropes it is hard to know when to try and get out. Against players that are way farther ahead it's even harder since they know exactly what to look for. It's probably better to fight more people on your level for that kind of thing.
Then slowly apply what you learn to other matches.