No it's not legal to convert an IF into a RIF....regardless, it's always illegal.
HOWEVER, if you have a form of defence, you can use that in front of a judge (should worse case scenario and you be in the dock).
Of course, that's all dependant on why you're there whether he considers it a valid excuse.