You don’t say what crime this man was convicted of, but the wisest and most empathetic course for you to take would be to maintain a non-romantic friendship, while understanding that you both have jobs to do. You need to work hard to fulfill your professional potential, and he needs to pay his debt to society and then – once he has done so — reintegrate into the world.