A warning has been issued to a firm which put over 200 college students “at risk” by running unlicensed flats.