Zach Skeech was issued a warning by the judge as he sentenced him