In understanding the idea of self-control, it is evident that two sides are involved.

One side is being attached to objects of the senses.

The other side is aversion to such objects.

Both are said to be equally foes.

indriyasyendriyasyārthe rāga-dveṣhau vyavasthitau
tayor na vaśham āgachchhet tau hyasya paripanthinau

This can be roughly translated to:

The senses naturally experience attachment and aversion to the sense objects, but do not be controlled by them, for they are way-layers and foes.

– Bhagavad Gita, 3:34