unity c# issue unable to get perfect position of a enemy in unity c# script using transform.position

when I command or set an enemy to go left and then at reaching a particular state or position i say my enemy to go right but it is not going right and not reaching to perfect position here is the code I think there is no issue in the code but it is not working properly so here are some images of the code

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class enem : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
    }

    // Update is called once per frame
    void Update()
    {
        transform.position = transform.position + new Vector3(-3f, 0f, 0f)* 1 * Time.deltaTime;
        if (transform.position.x > -29)
        {
            transform.position = transform.position + new Vector3(3f, 0f, 0f) * 1 * Time.deltaTime;


        }
    }
}