Wearing a yarmulke is a minhag. Not putting a stumbling block is d'oreisa.
Yet, I have noticed that Torah observant boys and young men play sports like basketball, flag football, and soccer with yarmulkes, even though there is a very good chance that they will fall off and cause someone to trip.
Is it assur to play sports with a yarmulke?