I have managed below way
IF ((@SerialNumber = @SerialNumberOld AND ISNULL(@IMEI, '') <> ISNULL(@IMEIOld, '')) OR (ISNULL(@SerialNumber, '') <> ISNULL(@SerialNumberOld, '') AND @IMEI = @IMEIOld))
BEGIN
--Do something
END
ELSE
By the way thanks a lot for your help