#include #define rep(i, n) for(int i = 0; i < (int)(n); i ++) #define rep1(i, n) for(int i = 1; i <= (int)(n); i ++) #define MP make_pair using namespace std; typedef long long LL; typedef pair PII; const int MOD = 998244353; int main() { ios::sync_with_stdio(false); cin.tie(0); int T; cin >> T; while(T --) { int n, a, b, c; cin >> n >> a >> b >> c; if(a >= b && a + (n - 1) * b <= n * c && (n - 1) * a + b >= n * c) cout << "yes\n"; else cout << "no\n"; } return 0; }