Godot comes with some 3D platformer template code, it can be found by attaching a script to a CharacterBody3D maybe that could help get you started. It makes use of move_toward (though incorrectly), which implements your described behaviour of moving towards a maximum velocity but not going over.
Could you paste your current code? Make sure to paste between three ticks ``` for proper formatting.