The 17M2 is necked down. when you fire the case will strech out to fill the .22lr chamber. It will go off but impact of the 17 bullet bouncing down the barrel could be dangerous to shooter and at best give absolutely lowsy accuracy. More than likely damage the rifling in your .22LR.tweak'e said:yes and no.
yes it would work but only a moron would want to do it.