Judge warns government on RIFs: ‘Don’t do it’