Per USPSA rules (if that is what you are shooting) you are permitted to apply a reasonable amount of pressure on the magazine while in the gauge to pass.
USPSA Competition Rules
March 20 20 v2
115
APPENDIX E1
–
Magazine Measurement
Magazine Measurement Procedure
Measurements on magazines are as follows:
5.561” (141.25 mm)
6.742” (171.25 mm)
The primary magazine measuring device shall be the EGW mag gauge. A magazine needs to conform to the length limit as well as the gauge to comply with our rules.
The gauge width extends to infinity. No curved, collapsible, extendable, or similar types of magazines will be allowed. If a base pad does not conform to the configuration of the gauge, a ruler may be used to measure the overall length as pictured above. The magazine shall be placed into the gauge without significant force or depression. It must lie so that the back of the magazine is flush against the gauge. The follower may be depressed, or slight pressure may be applied, to ensure proper fit. Some non telescoping base pads fit loosely on the bottom of the magazine, hence the magazine may need to be “clicked in” on the mag gauge, using slight pressure. If the magazine fit or procedure is questioned, the Range Master’s call will be final.