There are 2 ways to get onto those higher boxes.
(1) Double jumping as previously stated which is timing your jumps and putting space between them.
(2) Lag jumping is another way in which you jump and crouch once you reach the highest point.While doing so you have to hold w and s to keep you in place.