How do they do it?
They defend and look for gaps between the spaces.
Just imagine a match between Real Madrid versus Valencia.
You're managing Valencia and you need to defend, right? But if you just defend, Real Madrid has great quality up front and they will keep battering you until they score.
You'll have to defend and go out to play with certain passes at the right time.