Our semi-auto rifle magazines are limited to 5 rounds. Pistol mags are limited to 10.
If a pistol mag fits my rifle, I can run 10 rounds.
Your 40s would need limiting to 5.
In this matter, the difference between a criminal and myself, is a half cent rivet blocking the follower.