At the risk of sounding patronising, are you sure the 2.25 and 2.50 are stroke lengths and not spring rates? Although low spring rates, both do exist.
If it is stroke length, you just need to be sure that the stroke length is longer than the stroke of your shock. So both of those would work with a 2″ stroke shock but I’d only happy running the 2.50 if the shock was a 2.25″ stroke. The other thing to make sure is that the free length of the spring will fit the shock, although if you have them both the you’ll find out soon enough.
Just to make matters more confusing than they need to be, fox table their springs with the actual stroke it will work with which is how you get odd looking numbers like 2.57 on the spring where as nukeproof and others put the shock stroke it will take so contrary to what I said above, if it’s a nukeproof spring, the xxx x 2.25 will work fine on a 2.25″ or shorter shock.
HTH