When I change the value of Z axis the object move in X-Axis And vice versa
having some conflicts between local and world transforms perhaps?
I have exchanged the axis in my code. For example if I want to change x -axis value and in scene object it changes z-axis , so simply exchange the x-axis with z-axis in code. It will do work for you. As it occurs due to child parent transformation