How to avoid conflict between plugin and its edited version?

If you have deactivated the first one you should be able to use the new one without any hassle.
When the plugin deactivated, WP core don’t call any of it function or doesn’t use any thing else from it. But if you activated both of them then it can cause function re-declaration etc.