Magnetic crystals and helical liquids in alkaline-earth fermionic gases