A former federal agent found himself on the other side of law after being accused of falsifying records in an investigation against a customs officer.