This message is generated when the argument in Range is not a real number or is larger than the largest number that can be represented as a machine integer on your computer.
Off[message] switches off the message; On[message] switches it on. For example: Off[Range::range].
Examples
Basic Examples(1)
An error occurs because the argument is a complex number: