Why don't you simply try this one?
if ([distanceInFeet intValue]<=10000)
{
OR
if ([distanceInFeet integerValue]<=10000)
{
EDIT:
As per your edit of code, and correct error shown...
NSString *distanceInFeet = [NSString alloc] initWithFormat:@"%ld", [[NSUserDefaults standardUserDefaults]
stringForKey:@"distanceInFeet"]];