Integer expression expected error in script

When i run the following code i get an error that says Integer expression expected!
How do i fix this?

#!/bin/bash

if [ $1 -gt $2 ];then
        echo "wrong"
        exit 1

fi

if [ $1 -lt $2 ];then
    
    for i in /dev;do
   
    if [ \($(ls -l $i|wc -l) -ge $1\) -o \($(ls -l $i|wc -l) -ge $2\) ];then

       echo $i
       ls -l
    fi

   done
fi

What parameters do you call the script with? If either $1 or $2 were non numeric I would expect this output from the -lt test

The $1 and $2 are integers!

And i get this

add a space at the end of your conditions, ie

if [ \($(ls -l $i|wc -l) -ge $1\) -o \($(ls -l $i|wc -l) -ge $2\) ];then
becomes
if [ \( $(ls -l $i|wc -l) -ge $1 \) -o \( $(ls -l $i|wc -l) -ge $2 \) ];then

Thank you!It worked now!You saved my day!