Are you talking about grip in mud, rocks or both?
If you can not get grip go back to the start.
Tyre pressures first, climb a gentle slope with gentle throttle then progress from there.
try backing off and bringing it back in "feel" for the grip.
Ditto whats said above this is not a beginners bike.