Any ray having greater wavelength than xrays wouldn’t penetrate into the matetial so ultimately no information about crystal’s structure will be obtained (xrays have shorter wavelength which is of the order of interplannar spacing between atoms, so can penetrate into the atoms easily hence after getting diffracted one can collect numerous structural informations about the crystal)