Galatians Chapter 5 discusses walking (behaving) in the flesh as opposed to waking in the Spirit.
A temptation, and stumbling block, for many sincere Christians is to focus on the outward, following the law, an outward set rules and behaviors, e.g., as in Colossians 1:21 “Touch not; taste not; handle not;”. While the laws, rules and behaviors themselves may not be bad, it can lead to a legalistic, self-righteous, judgmental attitude.
Christ wants the heart – your true love and relationship with God. From that will flow all of the right behaviors. The Bible calls these behaviors, characteristics, or traits the “fruit of the Spirit”. That is, God on the inside, working on the outside.
Loving God, a relationship with God through Jesus Christ, is a matter of the heart. Jesus warned against trying to make a relationship with God something difficult, an outward show. Matthew 23:4 “For they bind heavy burdens and grievous to be borne, and lay them on men’s shoulders” v5 “but all their works they do to be seen of men”.
When our heart is right with God, and we walk (behave) according to that relationship, the fruit of the Spirit will flow outward.
Galatians 5:16 “Walk in the Spirit, and ye shall not fulfil the lust of the flesh.”
v22 “But the fruit of the Spirit is love, joy, peace, longsuffering, gentleness, goodness, faith, meekness, temperance: against such there is no law.”
Seek God. Seek to live in His Spirit. Seek to walk in His Spirit. The Fruits of the Spirit will follow.