image size if it exceeds the size exits warning
I have a folder with 100 images with different pixel sizes
I have to use image size
to adapt images to 5000px
as you can see from the image I have seen the voice of ont enlarge

I would like a warning if the image below 5000px
how to insert an alert to this script generated by ScriptingListener
// script
var idthreecaathreefourthreefourcbsixsevenoneonedonebcfourthreezerozerosixzerobzeroaonethreedcfour = stringIDToTypeID( "3caa3434-cb67-11d1-bc43-0060b0a13dc4" );
var desc1 = new ActionDescriptor();
var idMsge = charIDToTypeID( "Msge" );
desc1.putString( idMsge, """Fit Image action settings""" );
var idHght = charIDToTypeID( "Hght" );
var idPxl = charIDToTypeID( "#Pxl" );
desc1.putUnitDouble( idHght, idPxl, 5000.000000 );
var idWdth = charIDToTypeID( "Wdth" );
var idPxl = charIDToTypeID( "#Pxl" );
desc1.putUnitDouble( idWdth, idPxl, 5000.000000 );
var idlimit = stringIDToTypeID( "limit" );
desc1.putBoolean( idlimit, true );
executeAction( idthreecaathreefourthreefourcbsixsevenoneonedonebcfourthreezerozerosixzerobzeroaonethreedcfour, desc1, DialogModes.NO );
