Update Gravity forms entries pre save not updating post

i hope you can help me because im stock hard.
i’m trying to update an entry using the ‘gform_entry_id_pre_save_lead’ filter from your documents example, but my code is not working.
what i am doing wrong?
and how can i use this code to update more then.
a link to the code

Gravity Forms does not support updating posts, it only supports creating new posts. If you need to update a post you’ll need to do that using custom code or a third-party add-on such as Post Updates

i see post update is 4 year old and not supported.
how safe and stable it is?

It would be up to you to evaluate that. We’re just pointing out that it exists. Thank you.