The D'Alembert betting system is not illegal and can be used in a variety of casino games and other forms of gambling. However, it is important to note that most casinos and gambling establishments have their own rules and regulations, and players should be familiar with these before using any betting systems.