Consider a single particle with Hilbert space $L^2(\mathbb{R}^3) \otimes V_\ell$ where $V$ is a vector space of dimension $2\ell + 1$ equipped with a projective unitary representation of $SO(3)$. Physically we say that the particle has spin $\ell$, for example for bosons $\ell$ is an integer and for fermions $\ell$ is an odd multiple of $1/2$.
The above math is fine but I am confused on the physics. For example, suppose we did not know that the spin of an electron is $\ell = 1/2$. How would we determine that the dimension of the vector space used to represent an electron must be 2? Why not 4, 6, 8...etc?