You have described a couple of different phenomena in this thread...
1. Correct.
2. It may be illegal, strictly speaking, but it's very hard to prove, so, effectively, it's not illegal.
3. Some amount of window-dressing into month/quarter/year-end probably happens, but this isn't what you were...