is it legal to tell someone to sign a document accepting guilt in a charge in order to avoid getting arrested, then pressing charges?
It depends. Are you an attorney? A judge? A prosecutor? You should consult an attorney in your area and give more context.