This message is generated when the second argument in Raster is not a list with two elements, or if the elements are not valid coordinates for the corners of a rectangle.
Coordinates can be specified using a pair of real numbers or using Scaled.
Off[message] switches off the message; On[message] switches it on. For example: Off[Raster::rsrec].