FYI - stat is a pain - it does not output human readable format and depending on the FS setup it can have a different number of bytes for the same 1GB file.  Stat would require converting it's output into MB using bc or something else.  The test would be more complicated than the above.

Using grep twice?  Who cares?  It works.