Google generally recommends not to use IP-location as a way of automatically redirecting users to their preferred version:
To make all of your site's content more crawlable, avoid automatic
redirections based on the user's perceived language. These
redirections could prevent users (and search engines) from viewing all
the versions of your site.
Keep in mind that Google - and most other search engines - generally crawl from a single location, so any automatic redirect will lock them into a specific part of your website. On the other hand, if you have separate URLs for all language versions of your site that do not automatically redirect, then search engines will generally be able to crawl and index all versions of the website. It's fine to suggest a specific version to users (say with a JavaScript overlay or "butter-bar"), then those users will be able to reach those language versions faster, but you would not be forcing them.