to verify this, and they said once I-485 is denied your F-1 will be invalid immediately. In practice I don't know how serious they are going to reinfornce this law, though.
What you said is true for the denial of I-140. So,general speaking I think a F-1 should better file I-140 and I-485 seperately.