I wonder if there is a little difference between (1) and (2), between (3) and (4).
1, I don't want you to walk by yourself late at night.
2, I don't want you walking by yourself late at night.
3, You are not supposed to smoke here.
4, You are not supposed to smoke in here.
Not really. You might find situations where one is better; 3, for example, would be better than 4 in a park where smoking is prohibited. In the first pair, the infinitive (on this occasion) might have a more restricted sense than the gerund (walking in general).