State machines and what to avoid

I would like some advice

I made a simple state machine, and generally there are things I know and don’t. I want to know what to avoid when making or using a state machine for example should I avoid using a state machine on the client? etc.