
There’s no law against something
Colloquial Usage
This phrase is casual and more commonly used in spoken rather than formal written English. 
Implicit Approval
Using the phrase can suggest that an action, while not illegal, may still be frowned upon. 
Sarcastic Tone
Can be used sarcastically to imply that something is permissible but not necessarily wise or considerate. 