I'm no expert on special relativity, but I believe the statement is based on the fact that all inertial (non accelerating) reference frames are considered equivalent, i.e., there is no preferred inertial reference frame. If physics laws were different in different inertial frames, then all inertial frames would not be equivalent.
the laws of physics are the same in all frame. Take for example a
electron in electric field, what the trajectory of the electron has to
do if the observer is accelerated or in inertial reference frame
If you are saying the trajectory (path) taken by the electron is the same for all observers, I believe that is incorrect.
Let's take a simpler example. Suppose there is an observer next to an open window on a train moving in a straight line at constant speed, i.e., constant velocity, with respect to the tracks. The observer is in an inertial frame of reference. The observer releases a ball out the window and watches it fall. To the observer on the train, its trajectory (path) is a straight line down until it impacts the ground. But to an observer on the tracks (a different inertial frame) the trajectory of the ball is a parabola. The trajectory (path) of the ball is not a physical law. It depends on the inertial frame of reference.
On the other hand, its acceleration is the same in both inertial frames. The observer on the train has a stop watch and determines the time it takes for the ball to impact the ground. The observer knows the vertical distance $d$ it has fallen and determines its acceleration from $d=1/2 at^2$. The observer on the tracks measures the same time to impact and comes up with the same acceleration.
Hope this helps.