Be careful on interpreting that IF statement ...

There are two settings you can configure in your Admin ...

The setting in the Maximum Values for the maximum number to display is in the Configuration .... Maximum Values:
Also Purchased Products
Number of products to display in the 'This Customer Also Purchased' box
The limit on the Minimum Values to be displayed are in the Configuration ... Minimum Values:
Also Purchased Products
Minimum number of products to display in the 'This Customer Also Purchased' box